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
|
2022-10-30 15:09:59 +00:00
|
|
|
, toml
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepdiff";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "6.2.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
hash = "sha256-AKah3A9srKm/cFWM7IiZ7JxQ8s0KTuh8VLKOymsDgnA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/test_command.py \
|
|
|
|
--replace '/tmp/' "$TMPDIR/"
|
|
|
|
'';
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ordered-set
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
cli = [
|
|
|
|
clevercsv
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
};
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonpickle
|
2021-04-26 19:14:03 +00:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ passthru.optional-dependencies.cli;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"deepdiff"
|
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";
|
2022-10-30 15:09:59 +00:00
|
|
|
changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|