Merge pull request #150418 from fabaff/update-ssdeep
python3Packages.ssdeep: enable tests
This commit is contained in:
commit
e384fc4347
@ -1,33 +1,51 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, pkgs
|
|
||||||
, cffi
|
, cffi
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
, six
|
, six
|
||||||
, pytest
|
, ssdeep
|
||||||
, pytest-runner
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ssdeep";
|
pname = "ssdeep";
|
||||||
version = "3.4";
|
version = "3.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "DinoTools";
|
||||||
sha256 = "0px8k4fjbkjb717bg2v7rjhm4iclrxzq7sh0hfqs55f4ddqi0m8v";
|
repo = "python-ssdeep";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-eAB4/HmPGj/ngHrqkOlY/kTdY5iUEBHxrsRYjR/RNyw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgs.ssdeep pytest-runner ];
|
buildInputs = [
|
||||||
checkInputs = [ pytest ];
|
ssdeep
|
||||||
propagatedBuildInputs = [ cffi six ];
|
];
|
||||||
|
|
||||||
# tests repository does not include required files
|
propagatedBuildInputs = [
|
||||||
doCheck = false;
|
cffi
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace '"pytest-runner"' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ssdeep"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/DinoTools/python-ssdeep";
|
|
||||||
description = "Python wrapper for the ssdeep library";
|
description = "Python wrapper for the ssdeep library";
|
||||||
license = licenses.lgpl3;
|
homepage = "https://github.com/DinoTools/python-ssdeep";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9099,7 +9099,9 @@ in {
|
|||||||
|
|
||||||
srvlookup = callPackage ../development/python-modules/srvlookup { };
|
srvlookup = callPackage ../development/python-modules/srvlookup { };
|
||||||
|
|
||||||
ssdeep = callPackage ../development/python-modules/ssdeep { };
|
ssdeep = callPackage ../development/python-modules/ssdeep {
|
||||||
|
inherit (pkgs) ssdeep;
|
||||||
|
};
|
||||||
|
|
||||||
ssdp = callPackage ../development/python-modules/ssdp { };
|
ssdp = callPackage ../development/python-modules/ssdp { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user