From 3c1815eb448f75e4110f37444919c3f5af719ce4 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:27:47 -0400 Subject: [PATCH] pythonPackages.pyramid_multiauth: refactor move to python-modules --- .../pyramid_multiauth/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------ 2 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/pyramid_multiauth/default.nix diff --git a/pkgs/development/python-modules/pyramid_multiauth/default.nix b/pkgs/development/python-modules/pyramid_multiauth/default.nix new file mode 100644 index 000000000000..7130e8b499f3 --- /dev/null +++ b/pkgs/development/python-modules/pyramid_multiauth/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pyramid +}: + +buildPythonPackage rec { + pname = "pyramid_multiauth"; + version = "0.8.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1lq292qakrm4ixi4vaif8dqywzj08pn6qy0wi4gw28blh39p0msk"; + }; + + propagatedBuildInputs = [ pyramid ]; + + meta = with stdenv.lib; { + description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies"; + homepage = https://github.com/mozilla-services/pyramid_multiauth; + license = licenses.mpl20; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a7dcbe7cd35e..3e15429f9362 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2113,22 +2113,7 @@ in { pyramid_exclog = callPackage ../development/python-modules/pyramid_exclog { }; - pyramid_multiauth = buildPythonPackage rec { - name = "pyramid_multiauth-${version}"; - version = "0.8.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyramid_multiauth/${name}.tar.gz"; - sha256 = "1lq292qakrm4ixi4vaif8dqywzj08pn6qy0wi4gw28blh39p0msk"; - }; - - propagatedBuildInputs = with self; [ pyramid ]; - - meta = { - description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies"; - homepage = https://github.com/mozilla-services/pyramid_multiauth; - }; - }; + pyramid_multiauth = callPackage ../development/python-modules/pyramid_multiauth { }; pyramid_hawkauth = buildPythonPackage rec { name = "pyramidhawkauth-${version}";