Loading pkgs/tools/security/trustymail/default.nix +23 −21 Original line number Diff line number Diff line { lib , fetchFromGitHub , python3 { lib, fetchFromGitHub, python3, }: python3.pkgs.buildPythonApplication rec { pname = "trustymail"; version = "1.0.0"; format = "setuptools"; pyproject = true; src = fetchFromGitHub { owner = "cisagov"; repo = pname; repo = "trustymail"; rev = "refs/tags/v${version}"; hash = "sha256-Zkw+NfeVtIArrBxR1qR9bAQe5yd7mAtNiT0x5Mqr3Ic="; }; postPatch = '' substituteInPlace pytest.ini \ --replace " --cov" "" --replace-fail " --cov" "" ''; propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ dnspython docopt publicsuffixlist pydns pyspf requests ] ++ publicsuffixlist.optional-dependencies.update; ] ++ publicsuffixlist.optional-dependencies.update; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; pythonImportsCheck = [ "trustymail" ]; pythonImportsCheck = [ "trustymail" ]; meta = with lib; { description = "Tool to scan domains and return data based on trustworthy email best practices"; mainProgram = "trustymail"; homepage = "https://github.com/cisagov/trustymail"; changelog = "https://github.com/cisagov/trustymail/releases/tag/v${version}"; license = with licenses; [ cc0 ]; maintainers = with maintainers; [ fab ]; mainProgram = "trustymail"; }; } Loading
pkgs/tools/security/trustymail/default.nix +23 −21 Original line number Diff line number Diff line { lib , fetchFromGitHub , python3 { lib, fetchFromGitHub, python3, }: python3.pkgs.buildPythonApplication rec { pname = "trustymail"; version = "1.0.0"; format = "setuptools"; pyproject = true; src = fetchFromGitHub { owner = "cisagov"; repo = pname; repo = "trustymail"; rev = "refs/tags/v${version}"; hash = "sha256-Zkw+NfeVtIArrBxR1qR9bAQe5yd7mAtNiT0x5Mqr3Ic="; }; postPatch = '' substituteInPlace pytest.ini \ --replace " --cov" "" --replace-fail " --cov" "" ''; propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ dnspython docopt publicsuffixlist pydns pyspf requests ] ++ publicsuffixlist.optional-dependencies.update; ] ++ publicsuffixlist.optional-dependencies.update; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; pythonImportsCheck = [ "trustymail" ]; pythonImportsCheck = [ "trustymail" ]; meta = with lib; { description = "Tool to scan domains and return data based on trustworthy email best practices"; mainProgram = "trustymail"; homepage = "https://github.com/cisagov/trustymail"; changelog = "https://github.com/cisagov/trustymail/releases/tag/v${version}"; license = with licenses; [ cc0 ]; maintainers = with maintainers; [ fab ]; mainProgram = "trustymail"; }; }