From 8ad4ee2c801f243d07ca303bc7cd62bf16f850f2 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:15:47 -0400 Subject: [PATCH] pythonPacakges.pyramid_jinja2: refactor move to python-modules --- .../python-modules/pyramid_jinja2/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +------------ 2 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/pyramid_jinja2/default.nix diff --git a/pkgs/development/python-modules/pyramid_jinja2/default.nix b/pkgs/development/python-modules/pyramid_jinja2/default.nix new file mode 100644 index 000000000000..d211b9daf334 --- /dev/null +++ b/pkgs/development/python-modules/pyramid_jinja2/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, webtest +, jinja2 +, pyramid +}: + +buildPythonPackage rec { + pname = "pyramid_jinja2"; + version = "2.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "93c86e3103b454301f4d66640191aba047f2ab85ba75647aa18667b7448396bd"; + }; + + buildInputs = [ webtest ]; + propagatedBuildInputs = [ jinja2 pyramid ]; + + meta = with stdenv.lib; { + description = "Jinja2 template bindings for the Pyramid web framework"; + homepage = https://github.com/Pylons/pyramid_jinja2; + license = licenses.bsd0; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ba2a55c86fa6..ec204a1a683d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2107,24 +2107,7 @@ in { pyramid_chameleon = callPackage ../development/python-modules/pyramid_chameleon { }; - pyramid_jinja2 = buildPythonPackage rec { - name = "pyramid_jinja2-${version}"; - version = "2.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyramid_jinja2/${name}.tar.gz"; - sha256 = "93c86e3103b454301f4d66640191aba047f2ab85ba75647aa18667b7448396bd"; - }; - - buildInputs = with self; [ webtest ]; - propagatedBuildInputs = with self; [ jinja2 pyramid ]; - - meta = { - maintainers = with maintainers; [ domenkozar ]; - platforms = platforms.all; - }; - }; - + pyramid_jinja2 = callPackage ../development/python-modules/pyramid_jinja2 { }; pyramid_mako = buildPythonPackage rec { name = "pyramid_mako-0.3.1";