diff --git a/pkgs/development/python-modules/jinja2_time/default.nix b/pkgs/development/python-modules/jinja2_time/default.nix new file mode 100644 index 000000000000..69fbffa92b2f --- /dev/null +++ b/pkgs/development/python-modules/jinja2_time/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, arrow +, jinja2 +}: + +buildPythonPackage rec { + version = "0.2.0"; + pname = "jinja2-time"; + + src = fetchPypi { + inherit pname version; + sha256 = "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"; + }; + + propagatedBuildInputs = [ arrow jinja2 ]; + + meta = with stdenv.lib; { + homepage = https://github.com/hackebrot/jinja2-time; + description = "Jinja2 Extension for Dates and Times"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ca5b8cd45b2..6df28e5bcf1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5615,23 +5615,7 @@ in { jinja2 = callPackage ../development/python-modules/jinja2 { }; - jinja2_time = buildPythonPackage rec { - version = "0.2.0"; - name = "jinja2-time-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jinja2-time/${name}.tar.gz"; - sha256 = "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"; - }; - - propagatedBuildInputs = with self; [ arrow jinja2 ]; - - meta = { - homepage = https://github.com/hackebrot/jinja2-time; - description = "Jinja2 Extension for Dates and Times"; - license = licenses.mit; - }; - }; + jinja2_time = callPackage ../development/python-modules/jinja2_time { }; jinja2_pluralize = callPackage ../development/python-modules/jinja2_pluralize { };