terragrunt: 0.72.2 -> 0.72.6 (#378621)
[NixPkgs.git] / pkgs / development / python-modules / ssdeep / default.nix
blobf679b8806a821885208e2739985708f1fafbec05
2   lib,
3   buildPythonPackage,
4   cffi,
5   fetchFromGitHub,
6   pytestCheckHook,
7   six,
8   ssdeep,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "ssdeep";
14   version = "3.4.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "DinoTools";
21     repo = "python-ssdeep";
22     tag = version;
23     hash = "sha256-I5ci5BS+B3OE0xdLSahu3HCh99jjhnRHJFz830SvFpg=";
24   };
26   buildInputs = [ ssdeep ];
28   propagatedBuildInputs = [
29     cffi
30     six
31   ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   postPatch = ''
36     substituteInPlace setup.py \
37       --replace '"pytest-runner"' ""
38   '';
40   pythonImportsCheck = [ "ssdeep" ];
42   meta = with lib; {
43     description = "Python wrapper for the ssdeep library";
44     homepage = "https://github.com/DinoTools/python-ssdeep";
45     changelog = "https://github.com/DinoTools/python-ssdeep/blob/${version}/CHANGELOG.rst";
46     license = licenses.lgpl3Plus;
47     maintainers = with maintainers; [ fab ];
48   };