python3Packages.deepdiff: fix build and tests

This commit is contained in:
Martin Weinelt 2021-04-17 14:13:01 +02:00
parent a63e80407d
commit f929c7cdf3

View File

@ -1,34 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, mock
, jsonpickle
, mmh3
, fetchFromGitHub
, click
, ordered-set
, clevercsv
, jsonpickle
, numpy
, pytestCheckHook
, pyyaml
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "5.2.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "ae2cb98353309f93fbfdda4d77adb08fb303314d836bb6eac3d02ed71a10b40e";
# pypi source does not contain all fixtures required for tests
src = fetchFromGitHub {
owner = "seperman";
repo = "deepdiff";
rev = version;
sha256 = "0j3il23n3yfny6kzy2n67s0zsrqckck7x1ambqh29nzi0bqwslzk";
};
# # Extra packages (may not be necessary)
checkInputs = [
mock
numpy
pytestCheckHook
propagatedBuildInputs = [
click
ordered-set
];
propagatedBuildInputs = [
pythonImportsCheck = [
"deepdiff"
];
checkInputs = [
clevercsv
jsonpickle
mmh3
ordered-set
numpy
pytestCheckHook
pyyaml
];
meta = with lib; {