diff --git a/pkgs/development/python-modules/publicsuffixlist/default.nix b/pkgs/development/python-modules/publicsuffixlist/default.nix new file mode 100644 index 000000000000..91eafd150dd6 --- /dev/null +++ b/pkgs/development/python-modules/publicsuffixlist/default.nix @@ -0,0 +1,49 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 259f5de93347..99a23d49feaa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7685,6 +7685,8 @@ self: super: with self; { publicsuffix = callPackage ../development/python-modules/publicsuffix { }; + publicsuffixlist = callPackage ../development/python-modules/publicsuffixlist { }; + pubnub = callPackage ../development/python-modules/pubnub { }; pubnubsub-handler = callPackage ../development/python-modules/pubnubsub-handler { };