mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python310Packages.deepdiff: 5.8.2 -> 6.1.0
This commit is contained in:
parent
45454cd8ed
commit
7824e23a21
1 changed files with 21 additions and 15 deletions
|
@ -8,50 +8,56 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, toml
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "deepdiff";
|
pname = "deepdiff";
|
||||||
version = "5.8.2";
|
version = "6.1.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "seperman";
|
owner = "seperman";
|
||||||
repo = "deepdiff";
|
repo = "deepdiff";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
|
hash = "sha256-ngtQNyVQaywMyYitj37m0RJGBiMpjB4b8Rn+feMOjVU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "ordered-set==4.0.2" "ordered-set"
|
|
||||||
substituteInPlace tests/test_command.py \
|
substituteInPlace tests/test_command.py \
|
||||||
--replace '/tmp/' "$TMPDIR/"
|
--replace '/tmp/' "$TMPDIR/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
|
||||||
ordered-set
|
ordered-set
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
cli = [
|
||||||
|
clevercsv
|
||||||
|
click
|
||||||
|
pyyaml
|
||||||
|
toml
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
jsonpickle
|
||||||
|
numpy
|
||||||
|
pytestCheckHook
|
||||||
|
] ++ passthru.optional-dependencies.cli;
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"deepdiff"
|
"deepdiff"
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
clevercsv
|
|
||||||
jsonpickle
|
|
||||||
numpy
|
|
||||||
pytestCheckHook
|
|
||||||
pyyaml
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Deep Difference and Search of any Python object/data";
|
description = "Deep Difference and Search of any Python object/data";
|
||||||
homepage = "https://github.com/seperman/deepdiff";
|
homepage = "https://github.com/seperman/deepdiff";
|
||||||
|
changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mic92 ];
|
maintainers = with maintainers; [ mic92 ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue