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