summary refs log tree commit diff
path: root/pkgs/development/python-modules/cherrypy
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2017-09-05 11:16:41 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-09-06 13:54:10 +0200
commit67651d80bc8baaf09ab91fec8ea423e09107ed8f (patch)
tree216a82ca309b80298039c2038160a22e94a1de6f /pkgs/development/python-modules/cherrypy
parent036bafe0b94fb99ee9d1eb3d2fb902293a9f39a6 (diff)
downloadnixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.gz
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.bz2
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.lz
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.xz
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.zst
nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.zip
Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
Diffstat (limited to 'pkgs/development/python-modules/cherrypy')
-rw-r--r--pkgs/development/python-modules/cherrypy/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix
new file mode 100644
index 000000000000..cffffde8e3d1
--- /dev/null
+++ b/pkgs/development/python-modules/cherrypy/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k
+, pytest, setuptools_scm, pytestrunner
+, six, cheroot, portend }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "CherryPy";
+  version = "11.0.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1037pvhab4my791vfzikm649ny52fj7x2q87cnncmbnqin6ghwan";
+  };
+
+  # wsgiserver.ssl_pyopenssl is broken on py3k.
+  doCheck = !isPy3k;
+  buildInputs = [ pytest setuptools_scm pytestrunner ];
+  propagatedBuildInputs = [ six cheroot portend ];
+
+  meta = with stdenv.lib; {
+    homepage = "http://www.cherrypy.org";
+    description = "A pythonic, object-oriented HTTP framework";
+    license = licenses.bsd3;
+  };
+}