54 lines
903 B
Nix
54 lines
903 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pandoc
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "publicsuffixlist";
|
|
version = "0.10.0.20231109";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cr2rEoGVJ8BeXLfyPq4Auxu7OEOlVnKxlSMUREmji2E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
update = [
|
|
requests
|
|
];
|
|
readme = [
|
|
pandoc
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"publicsuffixlist"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"publicsuffixlist/test.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Public Suffix List parser implementation";
|
|
homepage = "https://github.com/ko-zu/psl";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|