1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, mock
6, webtest
7, sqlalchemy
8, pycrypto
9, isPy27
10, funcsigs
11, pycryptopp
12}:
13
14buildPythonPackage rec {
15 pname = "Beaker";
16 version = "1.8.0";
17
18 # The pypy release do not contains the tests
19 src = fetchFromGitHub {
20 owner = "bbangert";
21 repo = "beaker";
22 rev = "${version}";
23 sha256 = "17yfr7a307n8rdl09was4j60xqk2s0hk0hywdkigrpj4qnw0is7g";
24 };
25
26 buildInputs =
27 [ nose
28 mock
29 webtest
30 ];
31 propagatedBuildInputs = [
32 sqlalchemy
33 pycrypto
34 ] ++ lib.optionals (isPy27) [
35 funcsigs
36 pycryptopp
37 ];
38
39 meta = {
40 description = "A Session and Caching library with WSGI Middleware";
41 maintainers = with lib.maintainers; [ garbas domenkozar ];
42 };
43}