2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-26 19:14:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
2020-04-24 23:36:52 +00:00
|
|
|
, ordered-set
|
2021-04-26 19:14:03 +00:00
|
|
|
, clevercsv
|
|
|
|
, jsonpickle
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2021-04-26 19:14:03 +00:00
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepdiff";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "5.7.0";
|
2021-04-26 19:14:03 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
# pypi source does not contain all fixtures required for tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2022-04-15 01:41:22 +00:00
|
|
|
# 5.7.0 release not tagged https://github.com/seperman/deepdiff/issues/300
|
|
|
|
rev = "f2ffdb83b2993f4f0bb7e854620f0acd0bf6339e";
|
|
|
|
hash = "sha256-0UBx7sH2iMrLVl5FtHNTwoecLHi8GbInn75G3FSg4gk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
2022-04-15 01:41:22 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "ordered-set==4.0.2" "ordered-set"
|
2021-12-06 16:07:01 +00:00
|
|
|
substituteInPlace tests/test_command.py \
|
|
|
|
--replace '/tmp/' "$TMPDIR/"
|
|
|
|
'';
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
ordered-set
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"deepdiff"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
clevercsv
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonpickle
|
2021-04-26 19:14:03 +00:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deep Difference and Search of any Python object/data";
|
|
|
|
homepage = "https://github.com/seperman/deepdiff";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|