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