ipgrep: init at 1.0 (#43887)
This commit is contained in:
parent
bdf6f8528e
commit
2b75a7266c
36
pkgs/tools/networking/ipgrep/default.nix
Normal file
36
pkgs/tools/networking/ipgrep/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
version = "1.0";
|
||||||
|
pname = "ipgrep";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jedisct1";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1qaxvbqdalvz05aplhhrg7s4h7yx4clbfd50k46bgavhgcqqv8n3";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
mkdir -p ${pname}
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'scripts': []" "'scripts': { '${pname}.py' }"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
|
pycares
|
||||||
|
urllib3
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Extract, defang, resolve names and IPs from text";
|
||||||
|
longDescription = ''
|
||||||
|
ipgrep extracts possibly obfuscated host names and IP addresses
|
||||||
|
from text, resolves host names, and prints them, sorted by ASN.
|
||||||
|
'';
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ leenaars ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -684,6 +684,8 @@ with pkgs;
|
|||||||
|
|
||||||
imgpatchtools = callPackage ../development/mobile/imgpatchtools { };
|
imgpatchtools = callPackage ../development/mobile/imgpatchtools { };
|
||||||
|
|
||||||
|
ipgrep = callPackage ../tools/networking/ipgrep { };
|
||||||
|
|
||||||
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
|
||||||
|
|
||||||
pacparser = callPackage ../tools/networking/pacparser { };
|
pacparser = callPackage ../tools/networking/pacparser { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user