Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / publicsuffixlist / default.nix
bloba8cd6193d74bea101ae6f9e627caa8d5d96a2f46
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pandoc,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "publicsuffixlist";
14   version = "0.10.0.20240420";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-s8xPkes/xFlejqfOlMZOPLmNK92e2TLK18UZmv3/a6I=";
22   };
24   build-system = [ setuptools ];
26   passthru.optional-dependencies = {
27     update = [ requests ];
28     readme = [ pandoc ];
29   };
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "publicsuffixlist" ];
35   pytestFlagsArray = [ "publicsuffixlist/test.py" ];
37   meta = with lib; {
38     description = "Public Suffix List parser implementation";
39     homepage = "https://github.com/ko-zu/psl";
40     license = licenses.mpl20;
41     maintainers = with maintainers; [ fab ];
42     mainProgram = "publicsuffixlist-download";
43   };