From 0a0a1811db3ded3f5bf669f2f8a18cb3549c1f3f Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 11:22:59 -0400 Subject: [PATCH] pythonPackages.pyramid_exclog: refactor move to python-modules --- .../python-modules/pyramid_exclog/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------ 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/pyramid_exclog/default.nix diff --git a/pkgs/development/python-modules/pyramid_exclog/default.nix b/pkgs/development/python-modules/pyramid_exclog/default.nix new file mode 100644 index 000000000000..dfdea42b02c4 --- /dev/null +++ b/pkgs/development/python-modules/pyramid_exclog/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pyramid +}: + +buildPythonPackage rec { + pname = "pyramid_exclog"; + version = "0.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "a58c82866c3e1a350684e6b83b440d5dc5e92ca5d23794b56d53aac06fb65a2c"; + }; + + propagatedBuildInputs = [ pyramid ]; + + meta = with stdenv.lib; { + description = "A package which logs to a Python logger when an exception is raised by a Pyramid application"; + homepage = http://docs.pylonsproject.org/; + license = licenses.bsd0; + maintainers = with maintainers; [ garbas domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4d0793c42f92..a7dcbe7cd35e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2111,22 +2111,7 @@ in { pyramid_mako = callPackage ../development/python-modules/pyramid_mako { }; - pyramid_exclog = buildPythonPackage rec { - name = "pyramid_exclog-0.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyramid_exclog/${name}.tar.gz"; - sha256 = "a58c82866c3e1a350684e6b83b440d5dc5e92ca5d23794b56d53aac06fb65a2c"; - }; - - propagatedBuildInputs = with self; [ pyramid ]; - - meta = { - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.all; - }; - }; - + pyramid_exclog = callPackage ../development/python-modules/pyramid_exclog { }; pyramid_multiauth = buildPythonPackage rec { name = "pyramid_multiauth-${version}";