ipgrep: init at 1.0 (#43887)

This commit is contained in:
leenaars 2018-08-01 15:40:57 +02:00 committed by xeji
parent bdf6f8528e
commit 2b75a7266c
2 changed files with 38 additions and 0 deletions

View 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;
};
}

View File

@ -684,6 +684,8 @@ with pkgs;
imgpatchtools = callPackage ../development/mobile/imgpatchtools { };
ipgrep = callPackage ../tools/networking/ipgrep { };
lastpass-cli = callPackage ../tools/security/lastpass-cli { };
pacparser = callPackage ../tools/networking/pacparser { };