blob: 6ad339a083f52a7c8a7598db4fe41b02ce50eff1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, buildPythonPackage
, cffi
, fetchFromGitHub
, pytestCheckHook
, six
, ssdeep
}:
buildPythonPackage rec {
pname = "ssdeep";
version = "3.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "DinoTools";
repo = "python-ssdeep";
rev = version;
hash = "sha256-eAB4/HmPGj/ngHrqkOlY/kTdY5iUEBHxrsRYjR/RNyw=";
};
buildInputs = [
ssdeep
];
propagatedBuildInputs = [
cffi
six
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
pythonImportsCheck = [
"ssdeep"
];
meta = with lib; {
description = "Python wrapper for the ssdeep library";
homepage = "https://github.com/DinoTools/python-ssdeep";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ fab ];
};
}
|