From 8c158456d656ff5195d74112850aea297302c0de Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:08:22 -0400 Subject: [PATCH] pythonPackages.pyamid_chameleon: refactor move to python-modules --- .../pyramid_chameleon/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +------------- 2 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/pyramid_chameleon/default.nix diff --git a/pkgs/development/python-modules/pyramid_chameleon/default.nix b/pkgs/development/python-modules/pyramid_chameleon/default.nix new file mode 100644 index 000000000000..257be31f32d9 --- /dev/null +++ b/pkgs/development/python-modules/pyramid_chameleon/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, chameleon +, pyramid +, zope_interface +, setuptools +}: + +buildPythonPackage rec { + pname = "pyramid_chameleon"; + version = "0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017"; + }; + + propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ]; + + meta = with stdenv.lib; { + description = "Chameleon template compiler for pyramid"; + homepage = https://github.com/Pylons/pyramid_chameleon; + license = licenses.bsd0; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index afb768e33fe0..ba2a55c86fa6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2105,26 +2105,7 @@ in { pyramid_beaker = callPackage ../development/python-modules/pyramid_beaker { }; - pyramid_chameleon = buildPythonPackage rec { - name = "pyramid_chameleon-0.3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyramid_chameleon/${name}.tar.gz"; - sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017"; - }; - - propagatedBuildInputs = with self; [ - chameleon - pyramid - zope_interface - setuptools - ]; - - meta = { - maintainers = with maintainers; [ domenkozar ]; - }; - }; - + pyramid_chameleon = callPackage ../development/python-modules/pyramid_chameleon { }; pyramid_jinja2 = buildPythonPackage rec { name = "pyramid_jinja2-${version}";