diff --git a/pkgs/development/python-modules/jsonpatch/default.nix b/pkgs/development/python-modules/jsonpatch/default.nix new file mode 100644 index 000000000000..39f36b1d9494 --- /dev/null +++ b/pkgs/development/python-modules/jsonpatch/default.nix @@ -0,0 +1,26 @@ +{ lib +, buildPythonPackage +, fetchPypi +, jsonpointer +}: + +buildPythonPackage rec { + pname = "jsonpatch"; + version = "1.16"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "f025c28a08ce747429ee746bb21796c3b6417ec82288f8fe6514db7398f2af8a"; + }; + + # test files are missing + doCheck = false; + propagatedBuildInputs = [ jsonpointer ]; + + meta = { + description = "Library to apply JSON Patches according to RFC 6902"; + homepage = "https://github.com/stefankoegl/python-json-patch"; + license = lib.licenses.bsd2; # "Modified BSD license, says pypi" + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eb7305214825..3b16bd364449 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6785,22 +6785,7 @@ in { }; }; - jsonpatch = buildPythonPackage rec { - name = "jsonpatch-1.11"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jsonpatch/${name}.tar.gz"; - sha256 = "22d0bc0f5522a4a03dd9fb4c4cdf7c1f03256546c88be4c61e5ceabd22280e47"; - }; - - propagatedBuildInputs = with self; [ jsonpointer ]; - - meta = { - description = "Library to apply JSON Patches according to RFC 6902"; - homepage = "https://github.com/stefankoegl/python-json-patch"; - license = stdenv.lib.licenses.bsd2; # "Modified BSD license, says pypi" - }; - }; + jsonpatch = callPackage ../development/python-modules/jsonpatch { }; jsonpointer = buildPythonPackage rec { name = "jsonpointer-1.9";