Merge pull request #197338 from fabaff/deepdiff-bump

python310Packages.deepdiff: 5.8.2 -> 6.1.0
This commit is contained in:
Robert Scott 2022-10-23 23:36:12 +01:00 committed by GitHub
commit 968e212b76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 18 deletions

View file

@ -32,9 +32,11 @@ python3Packages.buildPythonApplication rec {
wrapGAppsHook
];
# Can be removed in later versions
# https://gitlab.com/sublime-music/sublime-music/-/issues/343
pythonRelaxDeps = [ "python-mpv" ];
# Can be removed in later versions (probably > 0.11.16)
pythonRelaxDeps = [
"deepdiff"
"python-mpv"
];
buildInputs = [
gtk3

View file

@ -8,50 +8,56 @@
, numpy
, pytestCheckHook
, pyyaml
, toml
, pythonOlder
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "5.8.2";
version = "6.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "seperman";
repo = "deepdiff";
rev = "v${version}";
hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
rev = "refs/tags/${version}";
hash = "sha256-ngtQNyVQaywMyYitj37m0RJGBiMpjB4b8Rn+feMOjVU=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "ordered-set==4.0.2" "ordered-set"
substituteInPlace tests/test_command.py \
--replace '/tmp/' "$TMPDIR/"
'';
propagatedBuildInputs = [
click
ordered-set
];
passthru.optional-dependencies = {
cli = [
clevercsv
click
pyyaml
toml
];
};
checkInputs = [
jsonpickle
numpy
pytestCheckHook
] ++ passthru.optional-dependencies.cli;
pythonImportsCheck = [
"deepdiff"
];
checkInputs = [
clevercsv
jsonpickle
numpy
pytestCheckHook
pyyaml
];
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}";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
};

View file

@ -43,6 +43,12 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# https://github.com/natekspencer/pylitterbot/issues/73
substituteInPlace pyproject.toml \
--replace 'deepdiff = "^5.8.1"' 'deepdiff = ">=5.8.1"'
'';
pytestFlagsArray = [
"--asyncio-mode=legacy"
];