summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-03-20 15:40:43 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-03-20 17:32:48 +0100
commit9f54b031fdbda6ebf71fb92222537786039abc75 (patch)
tree30f8b73ae5669cc80e5f104ab75eeb29bd399865 /pkgs/development/python-modules
parent3d989e3d7a27c0c01f97ee5817f5dd1223f13f93 (diff)
downloadnixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar.gz
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar.bz2
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar.lz
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar.xz
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.tar.zst
nixpkgs-9f54b031fdbda6ebf71fb92222537786039abc75.zip
pythonPackages.WSME: move expression
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/WSME/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/WSME/default.nix b/pkgs/development/python-modules/WSME/default.nix
new file mode 100644
index 00000000000..fc2b066ce1e
--- /dev/null
+++ b/pkgs/development/python-modules/WSME/default.nix
@@ -0,0 +1,40 @@
+{ lib, buildPythonPackage, fetchPypi, isPy3k
+, pbr, six, simplegeneric, netaddr, pytz, webob
+, cornice, nose, webtest, pecan, transaction, cherrypy, sphinx }:
+
+buildPythonPackage rec {
+  pname = "WSME";
+  version = "0.8.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1nw827iz5g9jlfnfbdi8kva565v0kdjzba2lccziimj09r71w900";
+  };
+
+  checkPhase = ''
+    # remove turbogears tests as we don't have it packaged
+    rm tests/test_tg*
+    # remove flask since we don't have flask-restful
+    rm tests/test_flask*
+    # https://bugs.launchpad.net/wsme/+bug/1510823
+    ${if isPy3k then "rm tests/test_cornice.py" else ""}
+
+    nosetests tests/
+  '';
+
+  nativeBuildInputs = [ pbr ];
+
+  propagatedBuildInputs = [
+    six simplegeneric netaddr pytz webob
+  ];
+
+  checkInputs = [
+    cornice nose webtest pecan transaction cherrypy sphinx
+  ];
+
+  meta = with lib; {
+    description = "Simplify the writing of REST APIs, and extend them with additional protocols";
+    homepage = http://git.openstack.org/cgit/openstack/wsme;
+    license = licenses.mit;
+  };
+}