Loading pkgs/development/python-modules/publicsuffixlist/default.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { 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 ]; }; } pkgs/tools/security/trustymail/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib , fetchFromGitHub , python3 }: python3.pkgs.buildPythonApplication rec { pname = "trustymail"; version = "0.8.1"; format = "setuptools"; src = fetchFromGitHub { owner = "cisagov"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-hKiQWAOzUjmoCcEH9OTgkgU7s1V+Vv3+93OLkqDRDoU="; }; postPatch = '' substituteInPlace pytest.ini \ --replace " --cov" "" ''; propagatedBuildInputs = with python3.pkgs; [ dnspython docopt publicsuffixlist pydns pyspf requests ] ++ publicsuffixlist.optional-dependencies.update; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; pythonImportsCheck = [ "trustymail" ]; meta = with lib; { description = "Tool to scan domains and return data based on trustworthy email best practices"; homepage = "https://github.com/cisagov/trustymail"; changelog = "https://github.com/cisagov/trustymail/releases/tag/v${version}"; license = with licenses; [ cc0 ]; maintainers = with maintainers; [ fab ]; }; } pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -26921,6 +26921,8 @@ with pkgs; trust-dns = callPackage ../servers/dns/trust-dns { }; trustymail = callPackage ../tools/security/trustymail { }; tunctl = callPackage ../os-specific/linux/tunctl { }; twa = callPackage ../tools/networking/twa { }; pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -7691,6 +7691,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 { }; Loading Loading
pkgs/development/python-modules/publicsuffixlist/default.nix 0 → 100644 +49 −0 Original line number Diff line number Diff line { 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 ]; }; }
pkgs/tools/security/trustymail/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib , fetchFromGitHub , python3 }: python3.pkgs.buildPythonApplication rec { pname = "trustymail"; version = "0.8.1"; format = "setuptools"; src = fetchFromGitHub { owner = "cisagov"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-hKiQWAOzUjmoCcEH9OTgkgU7s1V+Vv3+93OLkqDRDoU="; }; postPatch = '' substituteInPlace pytest.ini \ --replace " --cov" "" ''; propagatedBuildInputs = with python3.pkgs; [ dnspython docopt publicsuffixlist pydns pyspf requests ] ++ publicsuffixlist.optional-dependencies.update; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; pythonImportsCheck = [ "trustymail" ]; meta = with lib; { description = "Tool to scan domains and return data based on trustworthy email best practices"; homepage = "https://github.com/cisagov/trustymail"; changelog = "https://github.com/cisagov/trustymail/releases/tag/v${version}"; license = with licenses; [ cc0 ]; maintainers = with maintainers; [ fab ]; }; }
pkgs/top-level/all-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -26921,6 +26921,8 @@ with pkgs; trust-dns = callPackage ../servers/dns/trust-dns { }; trustymail = callPackage ../tools/security/trustymail { }; tunctl = callPackage ../os-specific/linux/tunctl { }; twa = callPackage ../tools/networking/twa { };
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -7691,6 +7691,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 { }; Loading