2020-01-28 22:42:51 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2021-04-17 14:13:01 +02:00
|
|
|
fetchFromGitHub,
|
2024-10-14 19:20:42 +03:00
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2021-04-17 14:13:01 +02:00
|
|
|
click,
|
2024-10-14 19:16:48 +03:00
|
|
|
orderly-set,
|
2023-02-06 09:49:29 +01:00
|
|
|
orjson,
|
2024-10-14 19:20:42 +03:00
|
|
|
|
|
|
|
# optional-dependencies
|
2021-04-17 14:13:01 +02:00
|
|
|
clevercsv,
|
2024-10-14 19:20:42 +03:00
|
|
|
|
|
|
|
# tests
|
2021-04-17 14:13:01 +02:00
|
|
|
jsonpickle,
|
2020-01-28 22:42:51 +00:00
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
2023-04-08 17:51:35 +02:00
|
|
|
python-dateutil,
|
2021-04-17 14:13:01 +02:00
|
|
|
pyyaml,
|
2022-10-23 09:16:01 +02:00
|
|
|
toml,
|
2023-09-15 14:06:01 +02:00
|
|
|
tomli-w,
|
2024-10-14 19:16:48 +03:00
|
|
|
polars,
|
|
|
|
pandas,
|
2020-01-28 22:42:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepdiff";
|
2024-10-23 08:57:47 +03:00
|
|
|
version = "8.0.1";
|
2024-10-14 19:20:42 +03:00
|
|
|
pyproject = true;
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2022-10-23 09:16:01 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-05-18 12:57:17 +02:00
|
|
|
|
2021-04-17 14:13:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2022-10-23 09:16:01 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-23 08:57:47 +03:00
|
|
|
hash = "sha256-e6eTPSGoJ8r/4vGi/iGVFW/BruBADtVMtnO001Qs0IQ=";
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
|
2024-10-14 19:20:42 +03:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-05-26 22:50:36 -07:00
|
|
|
click
|
2024-10-14 19:16:48 +03:00
|
|
|
orderly-set
|
2023-02-06 09:49:29 +01:00
|
|
|
orjson
|
2020-01-28 22:42:51 +00:00
|
|
|
];
|
2024-10-14 19:16:48 +03:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
# Upstream develops this package as well, and from some reason pins this
|
|
|
|
# dependency to a patch version below this one. No significant changes
|
|
|
|
# happend in that relase, so we shouldn't worry, especially if tests pass.
|
|
|
|
"orderly-set"
|
|
|
|
];
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2024-09-28 22:35:45 -07:00
|
|
|
optional-dependencies = {
|
2022-10-23 09:16:01 +02:00
|
|
|
cli = [
|
|
|
|
clevercsv
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
};
|
2021-04-17 14:13:01 +02:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2020-01-28 22:42:51 +00:00
|
|
|
jsonpickle
|
2021-04-17 14:13:01 +02:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
2023-04-08 17:51:35 +02:00
|
|
|
python-dateutil
|
2023-09-15 14:06:01 +02:00
|
|
|
tomli-w
|
2024-10-14 19:16:48 +03:00
|
|
|
polars
|
|
|
|
pandas
|
2024-09-28 22:35:45 -07:00
|
|
|
] ++ optional-dependencies.cli;
|
2022-10-23 09:16:01 +02:00
|
|
|
|
2023-09-15 14:06:01 +02:00
|
|
|
disabledTests = [
|
|
|
|
# not compatible with pydantic 2.x
|
|
|
|
"test_pydantic1"
|
|
|
|
"test_pydantic2"
|
2024-10-14 19:16:48 +03:00
|
|
|
# Require pytest-benchmark
|
|
|
|
"test_cache_deeply_nested_a1"
|
|
|
|
"test_lfu"
|
2023-09-15 14:06:01 +02:00
|
|
|
];
|
|
|
|
|
2022-10-23 09:16:01 +02:00
|
|
|
pythonImportsCheck = [ "deepdiff" ];
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2024-10-14 19:20:42 +03:00
|
|
|
meta = {
|
2020-01-28 22:42:51 +00:00
|
|
|
description = "Deep Difference and Search of any Python object/data";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "deep";
|
2020-01-28 22:42:51 +00:00
|
|
|
homepage = "https://github.com/seperman/deepdiff";
|
2022-10-23 09:16:01 +02:00
|
|
|
changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}";
|
2024-10-14 19:20:42 +03:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [
|
2024-10-14 19:20:58 +03:00
|
|
|
mic92
|
|
|
|
doronbehar
|
|
|
|
];
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
}
|