1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 08:59:20 +03:00
nixpkgs/pkgs/development/python-modules/ssdeep/default.nix

52 lines
845 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, cffi
2021-12-12 13:55:21 +01:00
, fetchFromGitHub
, pytestCheckHook
, six
2021-12-12 13:55:21 +01:00
, ssdeep
}:
buildPythonPackage rec {
pname = "ssdeep";
version = "3.4";
2021-12-12 13:55:21 +01:00
format = "setuptools";
2021-12-12 13:55:21 +01:00
src = fetchFromGitHub {
owner = "DinoTools";
repo = "python-ssdeep";
rev = version;
hash = "sha256-eAB4/HmPGj/ngHrqkOlY/kTdY5iUEBHxrsRYjR/RNyw=";
};
2021-12-12 13:55:21 +01:00
buildInputs = [
ssdeep
];
2021-12-12 13:55:21 +01:00
propagatedBuildInputs = [
cffi
six
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
pythonImportsCheck = [
"ssdeep"
];
meta = with lib; {
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 ];
};
}