1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

Merge pull request #330005 from Sigmanificient/telfhash

python312Packages.telfhash: drop nose dependency
This commit is contained in:
Emily 2024-07-27 01:13:25 +01:00 committed by GitHub
commit 809f20b2b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,12 +6,12 @@
packaging,
pyelftools,
tlsh,
nose,
setuptools,
}:
buildPythonPackage rec {
pname = "telfhash";
version = "0.9.8";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "trendmicro";
@ -23,22 +23,21 @@ buildPythonPackage rec {
# The tlsh library's name is just "tlsh"
postPatch = ''
substituteInPlace requirements.txt \
--replace "python-tlsh" "tlsh" \
--replace "py-tlsh" "tlsh"
--replace-fail "python-tlsh" "tlsh" \
--replace-fail "py-tlsh" "tlsh" \
--replace-fail "nose>=1.3.7" ""
'';
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
capstone
pyelftools
tlsh
packaging
];
nativeCheckInputs = [ nose ];
checkPhase = ''
nosetests
'';
doCheck = false; # no tests
pythonImportsCheck = [ "telfhash" ];