lol
1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "fierce";
8 version = "1.5.0";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "mschwager";
13 repo = pname;
14 rev = version;
15 sha256 = "sha256-9VTPD5i203BTl2nADjq131W9elgnaHNIWGIUuCiYlHg=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 dnspython
20 ];
21
22 postPatch = ''
23 substituteInPlace requirements.txt \
24 --replace 'dnspython==1.16.0' 'dnspython'
25 '';
26
27 # tests require network access
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "fierce"
32 ];
33
34 meta = with lib; {
35 description = "DNS reconnaissance tool for locating non-contiguous IP space";
36 homepage = "https://github.com/mschwager/fierce";
37 license = licenses.gpl3Plus;
38 maintainers = with maintainers; [ c0bw3b ];
39 };
40}