about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix b/nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix
new file mode 100644
index 000000000000..aad88af5f16a
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pyramid-beaker/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }:
+
+buildPythonPackage rec {
+  pname = "pyramid-beaker";
+  version = "0.8";
+  format = "setuptools";
+
+  src = fetchPypi {
+    pname = "pyramid_beaker";
+    inherit version;
+    sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p";
+  };
+
+  checkPhase = ''
+    # https://github.com/Pylons/pyramid_beaker/issues/29
+    py.test -k 'not test_includeme' pyramid_beaker/tests.py
+  '';
+
+  nativeCheckInputs = [ pytest ];
+
+  propagatedBuildInputs = [ beaker pyramid ];
+
+  meta = with lib; {
+    description = "Beaker session factory backend for Pyramid";
+    homepage = "https://docs.pylonsproject.org/projects/pyramid_beaker/en/latest/";
+    # idk, see https://github.com/Pylons/pyramid_beaker/blob/master/LICENSE.txt
+    # license = licenses.mpl20;
+    maintainers = with maintainers; [ domenkozar ];
+  };
+}