python3.pkgs.telfhash: init at unstable-2021-01-29

This commit is contained in:
Cole Helbling 2021-04-15 14:59:08 -07:00
parent cd0ffd3f5f
commit c27cf06128
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, capstone
, pyelftools
, tlsh
, nose
}:
buildPythonPackage {
pname = "telfhash";
version = "unstable-2021-01-29";
src = fetchFromGitHub {
owner = "trendmicro";
repo = "telfhash";
rev = "b5e398e59dc25a56a28861751c1fccc74ef71617";
sha256 = "jNu6qm8Q/UyJVaCqwFOPX02xAR5DwvCK3PaH6Fvmakk=";
};
# The tlsh library's name is just "tlsh"
postPatch = ''
substituteInPlace requirements.txt --replace "python-tlsh" "tlsh"
'';
propagatedBuildInputs = [
capstone
pyelftools
tlsh
];
checkInputs = [
nose
];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"telfhash"
];
meta = with lib; {
description = "Symbol hash for ELF files";
homepage = "https://github.com/trendmicro/telfhash";
license = licenses.asl20;
maintainers = teams.determinatesystems.members;
};
}

View file

@ -8320,6 +8320,8 @@ in {
telethon-session-sqlalchemy = callPackage ../development/python-modules/telethon-session-sqlalchemy { };
telfhash = callPackage ../development/python-modules/telfhash { };
tempita = callPackage ../development/python-modules/tempita { };
tempora = callPackage ../development/python-modules/tempora { };