2020-01-28 22:42:51 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2021-04-17 14:13:01 +02:00
|
|
|
fetchFromGitHub,
|
2025-05-03 15:51:44 -07:00
|
|
|
stdenv,
|
2024-10-14 19:20:42 +03:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2024-10-14 19:16:48 +03:00
|
|
|
orderly-set,
|
2024-10-14 19:20:42 +03:00
|
|
|
|
|
|
|
# optional-dependencies
|
2025-03-27 08:16:03 -07:00
|
|
|
click,
|
|
|
|
orjson,
|
|
|
|
pyyaml,
|
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,
|
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";
|
2025-03-27 08:16:03 -07:00
|
|
|
version = "8.4.1";
|
2024-10-14 19:20:42 +03:00
|
|
|
pyproject = true;
|
2020-01-28 22:42:51 +00:00
|
|
|
|
2021-04-17 14:13:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seperman";
|
|
|
|
repo = "deepdiff";
|
2024-12-17 01:56:54 +00:00
|
|
|
tag = version;
|
2025-03-27 08:16:03 -07:00
|
|
|
hash = "sha256-RXr+6DLzhnuow9JNqqnNmuehE89eOY4oYn4tw4VSI+A=";
|
2020-01-28 22:42:51 +00:00
|
|
|
};
|
|
|
|
|
2024-10-14 19:20:42 +03:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2024-10-14 19:16:48 +03:00
|
|
|
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 = [
|
|
|
|
click
|
|
|
|
pyyaml
|
2025-03-27 08:16:03 -07:00
|
|
|
];
|
|
|
|
optimize = [
|
|
|
|
orjson
|
2022-10-23 09:16:01 +02:00
|
|
|
];
|
|
|
|
};
|
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
|
2025-03-27 08:16:03 -07:00
|
|
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
2022-10-23 09:16:01 +02:00
|
|
|
|
2025-05-03 15:51:44 -07:00
|
|
|
disabledTests =
|
|
|
|
[
|
|
|
|
# not compatible with pydantic 2.x
|
|
|
|
"test_pydantic1"
|
|
|
|
"test_pydantic2"
|
|
|
|
# Require pytest-benchmark
|
|
|
|
"test_cache_deeply_nested_a1"
|
|
|
|
"test_lfu"
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
# Times out on darwin in Hydra
|
|
|
|
"test_repeated_timer"
|
|
|
|
];
|
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";
|
2025-03-27 08:16:03 -07:00
|
|
|
changelog = "https://github.com/seperman/deepdiff/blob/${src.tag}/CHANGELOG.md";
|
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
|
|
|
};
|
|
|
|
}
|