depot/third_party/nixpkgs/pkgs/development/python-modules/jsondiff/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

27 lines
537 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "jsondiff";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-J5WETvB17IorjThcTVn16kiwjnGA/OPLJ4e+DbALH7Q=";
};
postPatch = ''
sed -e "/'jsondiff=jsondiff.cli:main_deprecated',/d" -i setup.py
'';
# No tests
doCheck = false;
meta = {
description = "Diff JSON and JSON-like structures in Python";
homepage = "https://github.com/ZoomerAnalytics/jsondiff";
license = lib.licenses.mit;
};
}