1{ lib, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }:
2
3buildPythonPackage rec {
4 pname = "pyramid_beaker";
5 version = "0.8";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p";
10 };
11
12 checkPhase = ''
13 # https://github.com/Pylons/pyramid_beaker/issues/29
14 py.test -k 'not test_includeme' pyramid_beaker/tests.py
15 '';
16
17 checkInputs = [ pytest ];
18
19 propagatedBuildInputs = [ beaker pyramid ];
20
21 meta = with lib; {
22 description = "Beaker session factory backend for Pyramid";
23 homepage = "https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/";
24 # idk, see https://github.com/Pylons/pyramid_beaker/blob/master/LICENSE.txt
25 # license = licenses.mpl20;
26 maintainers = with maintainers; [ domenkozar ];
27 };
28}