mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
python3Packages.jsondiff: 2.0.0 -> 2.2.1
This commit is contained in:
parent
c7a587a2c6
commit
6967841429
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user