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