0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 16:40:32 +03:00
nixpkgs/pkgs/development/python-modules/jsonpatch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
827 B
Nix
Raw Normal View History

2017-08-25 11:04:45 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
2017-08-25 11:04:45 +02:00
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
};
propagatedBuildInputs = [ jsonpointer ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jsonpatch" ];
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
};
}