Files
nixpkgs/pkgs/development/python-modules/publicsuffixlist/default.nix
T
2023-03-02 23:01:48 +01:00

50 lines
840 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pandoc
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "publicsuffixlist";
version = "0.9.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9iQZb9v8aV7hg6UqLfxWGByPWb8mn+14vktIvCRX4hg=";
};
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 ];
};
}