diff --git a/pkgs/development/python-modules/jsonpointer/default.nix b/pkgs/development/python-modules/jsonpointer/default.nix new file mode 100644 index 000000000000..c07a4bf3a358 --- /dev/null +++ b/pkgs/development/python-modules/jsonpointer/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "jsonpointer"; + version = "1.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "39403b47a71aa782de6d80db3b78f8a5f68ad8dfc9e674ca3bb5b32c15ec7308"; + }; + + meta = with stdenv.lib; { + description = "Resolve JSON Pointers in Python"; + homepage = "https://github.com/stefankoegl/python-json-pointer"; + license = stdenv.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 0e0be30c48ab..a38509b109c7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1926,20 +1926,7 @@ in { jsonpickle = callPackage ../development/python-modules/jsonpickle { }; - jsonpointer = buildPythonPackage rec { - name = "jsonpointer-1.9"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jsonpointer/${name}.tar.gz"; - sha256 = "39403b47a71aa782de6d80db3b78f8a5f68ad8dfc9e674ca3bb5b32c15ec7308"; - }; - - meta = { - description = "Resolve JSON Pointers in Python"; - homepage = "https://github.com/stefankoegl/python-json-pointer"; - license = stdenv.lib.licenses.bsd2; # "Modified BSD license, says pypi" - }; - }; + jsonpointer = callPackage ../development/python-modules/jsonpointer { }; jsonrpclib = buildPythonPackage rec { name = "jsonrpclib-${version}";