nixpkgs/pkgs/development/python-modules/deepdiff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.4 KiB
Nix
Raw Normal View History

2020-01-28 22:42:51 +00:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
click,
2020-01-28 22:42:51 +00:00
ordered-set,
orjson,
clevercsv,
jsonpickle,
2020-01-28 22:42:51 +00:00
numpy,
pytestCheckHook,
python-dateutil,
pyyaml,
toml,
tomli-w,
pythonOlder,
2020-01-28 22:42:51 +00:00
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "7.0.1";
format = "setuptools";
2020-01-28 22:42:51 +00:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "seperman";
repo = "deepdiff";
rev = "refs/tags/${version}";
hash = "sha256-HqmAE5sLwyjyUahIUeRIJW0c5eliq/qEzE2FydHwc70=";
2020-01-28 22:42:51 +00:00
};
postPatch = ''
substituteInPlace tests/test_command.py \
--replace '/tmp/' "$TMPDIR/"
'';
propagatedBuildInputs = [
2024-05-26 22:50:36 -07:00
click
ordered-set
orjson
2020-01-28 22:42:51 +00:00
];
passthru.optional-dependencies = {
cli = [
clevercsv
click
pyyaml
toml
];
};
nativeCheckInputs = [
2020-01-28 22:42:51 +00:00
jsonpickle
numpy
pytestCheckHook
python-dateutil
tomli-w
] ++ passthru.optional-dependencies.cli;
disabledTests = [
# not compatible with pydantic 2.x
"test_pydantic1"
"test_pydantic2"
];
pythonImportsCheck = [ "deepdiff" ];
2020-01-28 22:42:51 +00:00
meta = with lib; {
description = "Deep Difference and Search of any Python object/data";
mainProgram = "deep";
2020-01-28 22:42:51 +00:00
homepage = "https://github.com/seperman/deepdiff";
changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}";
2020-01-28 22:42:51 +00:00
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
2020-01-28 22:42:51 +00:00
};
}