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
|
2023-02-06 08:49:29 +00:00
|
|
|
, orjson
|
2021-04-17 12:13:01 +00:00
|
|
|
, clevercsv
|
|
|
|
, jsonpickle
|
2020-01-28 22:42:51 +00:00
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
2023-04-08 15:51:35 +00:00
|
|
|
, python-dateutil
|
2021-04-17 12:13:01 +00:00
|
|
|
, pyyaml
|
2022-10-23 07:16:01 +00:00
|
|
|
, toml
|
2022-05-18 10:57:17 +00:00
|
|
|
, pythonOlder
|
2020-01-28 22:42:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepdiff";
|
2023-04-15 17:58:33 +00:00
|
|
|
version = "6.3.0";
|
2021-04-17 12:13:01 +00:00
|
|
|
format = "setuptools";
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2022-10-23 07:16:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-05-18 10:57:17 +00:00
|
|
|
|
2021-04-17 12:13:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2022-10-23 07:16:01 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-15 17:58:33 +00:00
|
|
|
hash = "sha256-txZ1X1J8DwueDRpLP3OuRA+S9hc5G3YCmEG+AS6ZAkI=";
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
|
2021-11-10 18:55:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/test_command.py \
|
|
|
|
--replace '/tmp/' "$TMPDIR/"
|
|
|
|
'';
|
|
|
|
|
2021-04-17 12:13:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ordered-set
|
2023-02-06 08:49:29 +00:00
|
|
|
orjson
|
2020-01-28 22:42:51 +00:00
|
|
|
];
|
|
|
|
|
2022-10-23 07:16:01 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
cli = [
|
|
|
|
clevercsv
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
};
|
2021-04-17 12:13:01 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-01-28 22:42:51 +00:00
|
|
|
jsonpickle
|
2021-04-17 12:13:01 +00:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
2023-04-08 15:51:35 +00:00
|
|
|
python-dateutil
|
2022-10-23 07:16:01 +00:00
|
|
|
] ++ passthru.optional-dependencies.cli;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"deepdiff"
|
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";
|
2022-10-23 07:16:01 +00:00
|
|
|
changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}";
|
2020-01-28 22:42:51 +00:00
|
|
|
license = licenses.mit;
|
2022-05-18 10:57:17 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
}
|