2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 12:42:37 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, cffi
|
2021-12-12 13:55:21 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2018-10-16 12:42:37 -04:00
|
|
|
, six
|
2021-12-12 13:55:21 +01:00
|
|
|
, ssdeep
|
2018-10-16 12:42:37 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ssdeep";
|
2019-10-23 08:27:58 -07:00
|
|
|
version = "3.4";
|
2021-12-12 13:55:21 +01:00
|
|
|
format = "setuptools";
|
2018-10-16 12:42:37 -04:00
|
|
|
|
2021-12-12 13:55:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DinoTools";
|
|
|
|
repo = "python-ssdeep";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-eAB4/HmPGj/ngHrqkOlY/kTdY5iUEBHxrsRYjR/RNyw=";
|
2018-10-16 12:42:37 -04:00
|
|
|
};
|
|
|
|
|
2021-12-12 13:55:21 +01:00
|
|
|
buildInputs = [
|
|
|
|
ssdeep
|
|
|
|
];
|
2018-10-16 12:42:37 -04:00
|
|
|
|
2021-12-12 13:55:21 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"pytest-runner"' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ssdeep"
|
|
|
|
];
|
2018-10-16 12:42:37 -04:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-16 12:42:37 -04:00
|
|
|
description = "Python wrapper for the ssdeep library";
|
2021-12-12 13:55:21 +01:00
|
|
|
homepage = "https://github.com/DinoTools/python-ssdeep";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-10-16 12:42:37 -04:00
|
|
|
};
|
|
|
|
}
|