nixpkgs/pkgs/development/python-modules/publicsuffixlist/default.nix

50 lines
850 B
Nix

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