2020-01-28 22:42:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-17 12:13:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
2020-01-28 22:42:51 +00:00
|
|
|
, ordered-set
|
2021-04-17 12:13:01 +00:00
|
|
|
, clevercsv
|
|
|
|
, jsonpickle
|
2020-01-28 22:42:51 +00:00
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2021-04-17 12:13:01 +00:00
|
|
|
, pyyaml
|
2022-05-18 10:57:17 +00:00
|
|
|
, pythonOlder
|
2020-01-28 22:42:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepdiff";
|
2022-05-18 10:57:17 +00:00
|
|
|
version = "5.8.2";
|
2021-04-17 12:13:01 +00:00
|
|
|
format = "setuptools";
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2022-05-18 10:57:17 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-04-17 12:13:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2022-05-18 10:57:17 +00:00
|
|
|
rev = "v${version}";
|
2022-05-19 06:21:03 +00:00
|
|
|
hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
|
2021-11-10 18:55:03 +00:00
|
|
|
postPatch = ''
|
2022-03-05 19:36:20 +00:00
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "ordered-set==4.0.2" "ordered-set"
|
2021-11-10 18:55:03 +00:00
|
|
|
substituteInPlace tests/test_command.py \
|
|
|
|
--replace '/tmp/' "$TMPDIR/"
|
|
|
|
'';
|
|
|
|
|
2021-04-17 12:13:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
ordered-set
|
2020-01-28 22:42:51 +00:00
|
|
|
];
|
|
|
|
|
2021-04-17 12:13:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"deepdiff"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
clevercsv
|
2020-01-28 22:42:51 +00:00
|
|
|
jsonpickle
|
2021-04-17 12:13:01 +00:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
2020-01-28 22:42:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deep Difference and Search of any Python object/data";
|
|
|
|
homepage = "https://github.com/seperman/deepdiff";
|
|
|
|
license = licenses.mit;
|
2022-05-18 10:57:17 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
}
|