about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/fierce/default.nix
blob: 07ab18e36a661c46183139d508465d31cf5b3ef0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "fierce";
  version = "1.5.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mschwager";
    repo = pname;
    rev = version;
    sha256 = "sha256-9VTPD5i203BTl2nADjq131W9elgnaHNIWGIUuCiYlHg=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    dnspython
  ];

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace 'dnspython==1.16.0' 'dnspython'
  '';

  # tests require network access
  doCheck = false;

  pythonImportsCheck = [
    "fierce"
  ];

  meta = with lib; {
    description = "DNS reconnaissance tool for locating non-contiguous IP space";
    mainProgram = "fierce";
    homepage = "https://github.com/mschwager/fierce";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ c0bw3b ];
  };
}