2021-12-13 15:53:28 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2019-05-19 16:45:17 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "fierce";
|
2021-12-13 15:53:28 +00:00
|
|
|
version = "1.5.0";
|
|
|
|
format = "setuptools";
|
2019-05-19 16:45:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mschwager";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-13 15:53:28 +00:00
|
|
|
sha256 = "sha256-9VTPD5i203BTl2nADjq131W9elgnaHNIWGIUuCiYlHg=";
|
2019-05-19 16:45:17 +00:00
|
|
|
};
|
|
|
|
|
2021-12-13 15:53:28 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dnspython
|
|
|
|
];
|
|
|
|
|
2020-09-18 21:34:52 +00:00
|
|
|
postPatch = ''
|
2021-12-13 15:53:28 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace 'dnspython==1.16.0' 'dnspython'
|
2020-09-18 21:34:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# tests require network access
|
|
|
|
doCheck = false;
|
2021-12-13 15:53:28 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"fierce"
|
|
|
|
];
|
2020-09-18 21:34:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-19 16:45:17 +00:00
|
|
|
description = "DNS reconnaissance tool for locating non-contiguous IP space";
|
2021-12-13 15:53:28 +00:00
|
|
|
homepage = "https://github.com/mschwager/fierce";
|
2019-05-19 16:45:17 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2019-08-20 17:36:05 +00:00
|
|
|
maintainers = with maintainers; [ c0bw3b ];
|
2019-05-19 16:45:17 +00:00
|
|
|
};
|
|
|
|
}
|