python3Packages.jsondiff: 2.0.0 -> 2.2.1

This commit is contained in:
Martin Weinelt 2024-09-29 17:05:08 +02:00
parent c7a587a2c6
commit 6967841429

View File

@ -1,25 +1,43 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
pyyaml,
# tests
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jsondiff";
version = "2.0.0";
format = "setuptools";
version = "2.2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-J5WETvB17IorjThcTVn16kiwjnGA/OPLJ4e+DbALH7Q=";
src = fetchFromGitHub {
owner = "xlwings";
repo = "jsondiff";
rev = "refs/tags/${version}";
hash = "sha256-0EnI7f5t7Ftl/8UcsRdA4iVQ78mxvPucCJjFJ8TMwww=";
};
postPatch = ''
sed -e "/'jsondiff=jsondiff.cli:main_deprecated',/d" -i setup.py
'';
build-system = [
setuptools
setuptools-scm
];
# No tests
doCheck = false;
dependencies = [ pyyaml ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
meta = {
description = "Diff JSON and JSON-like structures in Python";