mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
python3Packages.ssdeep: enable tests
This commit is contained in:
parent
5e4feb3c2d
commit
5e4b6df585
2 changed files with 36 additions and 16 deletions
|
@ -1,33 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pkgs
|
||||
, cffi
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, pytest
|
||||
, pytest-runner
|
||||
, ssdeep
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ssdeep";
|
||||
version = "3.4";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0px8k4fjbkjb717bg2v7rjhm4iclrxzq7sh0hfqs55f4ddqi0m8v";
|
||||
src = fetchFromGitHub {
|
||||
owner = "DinoTools";
|
||||
repo = "python-ssdeep";
|
||||
rev = version;
|
||||
hash = "sha256-eAB4/HmPGj/ngHrqkOlY/kTdY5iUEBHxrsRYjR/RNyw=";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.ssdeep pytest-runner ];
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ cffi six ];
|
||||
buildInputs = [
|
||||
ssdeep
|
||||
];
|
||||
|
||||
# tests repository does not include required files
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
six
|
||||
];
|
||||
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner"' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ssdeep"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/DinoTools/python-ssdeep";
|
||||
description = "Python wrapper for the ssdeep library";
|
||||
license = licenses.lgpl3;
|
||||
homepage = "https://github.com/DinoTools/python-ssdeep";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -9091,7 +9091,9 @@ in {
|
|||
|
||||
srvlookup = callPackage ../development/python-modules/srvlookup { };
|
||||
|
||||
ssdeep = callPackage ../development/python-modules/ssdeep { };
|
||||
ssdeep = callPackage ../development/python-modules/ssdeep {
|
||||
inherit (pkgs) ssdeep;
|
||||
};
|
||||
|
||||
ssdp = callPackage ../development/python-modules/ssdp { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue