depot/third_party/nixpkgs/pkgs/development/python-modules/ssdeep/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

51 lines
845 B
Nix

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