diff --git a/pkgs/development/python-modules/pyramid_beaker/default.nix b/pkgs/development/python-modules/pyramid_beaker/default.nix new file mode 100644 index 000000000000..517f068edd9c --- /dev/null +++ b/pkgs/development/python-modules/pyramid_beaker/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "pyramid_beaker"; + version = "0.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p"; + }; + + checkPhase = '' + # https://github.com/Pylons/pyramid_beaker/issues/29 + py.test -k 'not test_includeme' + ''; + + buildInputs = [ pytest ]; + + propagatedBuildInputs = [ beaker pyramid ]; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ domenkozar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea1a97ac2335..d7a965315f63 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7971,23 +7971,7 @@ in { }; - - pyramid_beaker = buildPythonPackage rec { - name = "pyramid_beaker-0.8"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyramid_beaker/${name}.tar.gz"; - sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p"; - }; - - propagatedBuildInputs = with self; [ beaker pyramid ]; - - meta = { - maintainers = with maintainers; [ domenkozar ]; - platforms = platforms.all; - }; - }; - + pyramid_beaker = callPackage ../development/python-modules/pyramid_beaker { }; pyramid_chameleon = buildPythonPackage rec { name = "pyramid_chameleon-0.3";