-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python312Packages.telfhash: drop nose dependency #330005
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this required? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From what I can see there really is just no tests in the codebase, and @natsukium prefers that this is explicitely set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright; very strange. |
||
|
||
pythonImportsCheck = [ "telfhash" ]; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits: you can use
pythonRemoveDeps
here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn’t know about that, thank you! Sorry for not catching this. At least it was already present before in this case.