diff --git a/pkgs/development/python-modules/speaklater/default.nix b/pkgs/development/python-modules/speaklater/default.nix new file mode 100644 index 000000000000..5de86d9e14c2 --- /dev/null +++ b/pkgs/development/python-modules/speaklater/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "speaklater"; + version = "1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1ab5dbfzzgz6cnz4xlwx79gz83id4bhiw67k1cgqrlzfs0va7zjr"; + }; + + meta = with stdenv.lib; { + description = "Implements a lazy string for python useful for use with gettext"; + homepage = https://github.com/mitsuhiko/speaklater; + license = licenses.bsd0; + maintainers = with maintainers; [ matejc ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7bac1c7912da..386e45d6c62e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4336,21 +4336,7 @@ in { flaskbabel = callPackage ../development/python-modules/flaskbabel { }; - speaklater = buildPythonPackage rec { - name = "speaklater-1.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/speaklater/${name}.tar.gz"; - sha256 = "1ab5dbfzzgz6cnz4xlwx79gz83id4bhiw67k1cgqrlzfs0va7zjr"; - }; - - meta = { - description = "Implements a lazy string for python useful for use with gettext"; - homepage = https://github.com/mitsuhiko/speaklater; - license = "bsd"; - maintainers = with maintainers; [ matejc ]; - }; - }; + speaklater = callPackage ../development/python-modules/speaklater { }; speedtest-cli = callPackage ../development/python-modules/speedtest-cli { };