depot/third_party/nixpkgs/pkgs/development/python-modules/jsonpatch/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

45 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, jsonpointer
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jsonpatch";
version = "1.32";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stefankoegl";
repo = "python-json-patch";
rev = "v${version}";
hash = "sha256-JMGBgYjnjHQ5JpzDwJcR2nVZfzmQ8ZZtcB0GsJ9Q4Jc=";
};
propagatedBuildInputs = [
jsonpointer
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"jsonpatch"
];
pytestFlagsArray = [
"tests.py"
];
meta = with lib; {
description = "Library to apply JSON Patches according to RFC 6902";
homepage = "https://github.com/stefankoegl/python-json-patch";
license = licenses.bsd2; # "Modified BSD license, says pypi"
maintainers = with maintainers; [ ];
};
}