diff --git a/pkgs/development/python-modules/ujson/default.nix b/pkgs/development/python-modules/ujson/default.nix new file mode 100644 index 000000000000..a9d68978c3b0 --- /dev/null +++ b/pkgs/development/python-modules/ujson/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPyPy +}: + +buildPythonPackage rec { + pname = "ujson"; + version = "1.35"; + disabled = isPyPy; + + src = fetchPypi { + inherit pname version; + sha256 = "11jz5wi7mbgqcsz52iqhpyykiaasila4lq8cmc2d54bfa3jp6q7n"; + }; + + meta = with stdenv.lib; { + homepage = https://pypi.python.org/pypi/ujson; + description = "Ultra fast JSON encoder and decoder for Python"; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8874569c2400..6e0c7ea51515 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4278,23 +4278,7 @@ in { carbon = callPackage ../development/python-modules/carbon { }; - ujson = buildPythonPackage rec { - name = "ujson-1.35"; - - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/u/ujson/${name}.tar.gz"; - sha256 = "11jz5wi7mbgqcsz52iqhpyykiaasila4lq8cmc2d54bfa3jp6q7n"; - }; - - meta = { - homepage = https://pypi.python.org/pypi/ujson; - description = "Ultra fast JSON encoder and decoder for Python"; - license = licenses.bsd3; - }; - }; - + ujson = callPackage ../development/python-modules/ujson { }; unidecode = callPackage ../development/python-modules/unidecode {};