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:
commit
809f20b2b8
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue