Skip to content

Commit

Permalink
Merge pull request #330005 from Sigmanificient/telfhash
Browse files Browse the repository at this point in the history
python312Packages.telfhash: drop nose dependency
  • Loading branch information
emilazy authored Jul 27, 2024
2 parents b9b0f7e + 3fafc1a commit 809f20b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pkgs/development/python-modules/telfhash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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" ];

Expand Down

0 comments on commit 809f20b

Please sign in to comment.