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.

69 lines
1.2 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
, pythonOlder
2020-01-28 22:42:51 +00:00
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "6.3.0";
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-txZ1X1J8DwueDRpLP3OuRA+S9hc5G3YCmEG+AS6ZAkI=";
2020-01-28 22:42:51 +00:00
};
postPatch = ''
substituteInPlace tests/test_command.py \
--replace '/tmp/' "$TMPDIR/"
'';
propagatedBuildInputs = [
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
] ++ 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";
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
};
}