My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/ssdeep/default.nix

51 lines
845 B

{ 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 ];
};
}