0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-20 17:10:46 +03:00
nixpkgs/pkgs/development/python-modules/jsonpatch/default.nix

39 lines
827 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
jsonpointer,
pytestCheckHook,
pythonOlder,
2017-08-25 11:04:45 +02:00
}:
buildPythonPackage rec {
pname = "jsonpatch";
version = "1.33";
format = "setuptools";
2017-08-25 11:04:45 +02:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stefankoegl";
repo = "python-json-patch";
rev = "refs/tags/v${version}";
hash = "sha256-JHBB64LExzHQVoFF2xcsqGlNWX/YeEBa1M/TmfeQLWI=";
2017-08-25 11:04:45 +02:00
};
2024-05-22 16:01:06 +02:00
propagatedBuildInputs = [ jsonpointer ];
2024-05-22 16:01:06 +02:00
nativeCheckInputs = [ pytestCheckHook ];
2024-05-22 16:01:06 +02:00
pythonImportsCheck = [ "jsonpatch" ];
2024-05-22 16:01:06 +02:00
pytestFlagsArray = [ "tests.py" ];
2017-08-25 11:04:45 +02:00
meta = with lib; {
2017-08-25 11:04:45 +02:00
description = "Library to apply JSON Patches according to RFC 6902";
homepage = "https://github.com/stefankoegl/python-json-patch";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
2017-08-25 11:04:45 +02:00
};
}