46 lines
981 B
Nix
46 lines
981 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pandoc,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "publicsuffixlist";
|
|
version = "1.0.2.20250815";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-N08LlCOmZvkBbIPUh80QY/NM5wxS4FefKnFF4XvlH0k=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
optional-dependencies = {
|
|
update = [ requests ];
|
|
readme = [ pandoc ];
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "publicsuffixlist" ];
|
|
|
|
enabledTestPaths = [ "publicsuffixlist/test.py" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/ko-zu/psl/blob/v${version}-gha/CHANGES.md";
|
|
description = "Public Suffix List parser implementation";
|
|
homepage = "https://github.com/ko-zu/psl";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "publicsuffixlist-download";
|
|
};
|
|
}
|