Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ssdeep / default.nix
blob44a7f37190dc77dbe2cfa3117c26896337502a18
1 { lib
2 , buildPythonPackage
3 , cffi
4 , fetchFromGitHub
5 , pytestCheckHook
6 , six
7 , ssdeep
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "ssdeep";
13   version = "3.4.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "DinoTools";
20     repo = "python-ssdeep";
21     rev = "refs/tags/${version}";
22     hash = "sha256-I5ci5BS+B3OE0xdLSahu3HCh99jjhnRHJFz830SvFpg=";
23   };
25   buildInputs = [
26     ssdeep
27   ];
29   propagatedBuildInputs = [
30     cffi
31     six
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   postPatch = ''
39     substituteInPlace setup.py \
40       --replace '"pytest-runner"' ""
41   '';
43   pythonImportsCheck = [
44     "ssdeep"
45   ];
47   meta = with lib; {
48     description = "Python wrapper for the ssdeep library";
49     homepage = "https://github.com/DinoTools/python-ssdeep";
50     changelog = "https://github.com/DinoTools/python-ssdeep/blob/${version}/CHANGELOG.rst";
51     license = licenses.lgpl3Plus;
52     maintainers = with maintainers; [ fab ];
53   };