biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / trustymail / default.nix
blob8c54cbf05047cc593c2f3524c5f6e3c1f71bfc68
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "trustymail";
9   version = "1.0.0";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "cisagov";
14     repo = "trustymail";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-Zkw+NfeVtIArrBxR1qR9bAQe5yd7mAtNiT0x5Mqr3Ic=";
17   };
19   build-system = with python3.pkgs; [ setuptools ];
21   dependencies =
22     with python3.pkgs;
23     [
24       dnspython
25       docopt
26       publicsuffixlist
27       pydns
28       pyspf
29       requests
30     ]
31     ++ publicsuffixlist.optional-dependencies.update;
33   nativeCheckInputs = with python3.pkgs; [
34     pytest-cov-stub
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [ "trustymail" ];
40   meta = with lib; {
41     description = "Tool to scan domains and return data based on trustworthy email best practices";
42     homepage = "https://github.com/cisagov/trustymail";
43     changelog = "https://github.com/cisagov/trustymail/releases/tag/v${version}";
44     license = with licenses; [ cc0 ];
45     maintainers = with maintainers; [ fab ];
46     mainProgram = "trustymail";
47   };