about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nevow
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-03-14 00:22:19 +0100
committerxeji <xeji@cat3.de>2018-03-14 18:41:45 +0100
commit9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc (patch)
treeaf0ef24d7d7ccc921fbf798ce066a16d9be6c9db /pkgs/development/python-modules/nevow
parentd1c6f5a6b458870db7e91b82e9e75c86e1ae47ad (diff)
downloadnixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar.gz
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar.bz2
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar.lz
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar.xz
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.tar.zst
nixlib-9a10c55a8ae1f1a74e1bb66eac93bde93b0d94cc.zip
pythonPackages.nevow: fix build, 0.14.2->0.14.3
fix tests, minor update, move to development/python-modules/
Diffstat (limited to 'pkgs/development/python-modules/nevow')
-rw-r--r--pkgs/development/python-modules/nevow/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nevow/default.nix b/pkgs/development/python-modules/nevow/default.nix
new file mode 100644
index 000000000000..ccbb59c44dc2
--- /dev/null
+++ b/pkgs/development/python-modules/nevow/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k, twisted }:
+
+buildPythonPackage rec {
+  pname = "Nevow";
+  version = "0.14.3";
+  disabled = isPy3k;
+
+  src = fetchPypi {
+    inherit version pname;
+    sha256 = "0pid8dj3p8ai715n9a59cryfxrrbxidpda3f8hvgmfpcrjdmnmmb";
+  };
+
+  propagatedBuildInputs = [ twisted ];
+
+  checkPhase = ''
+    trial formless nevow
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Nevow, a web application construction kit for Python";
+    longDescription = ''
+      Nevow - Pronounced as the French "nouveau", or "noo-voh", Nevow
+      is a web application construction kit written in Python.  It is
+      designed to allow the programmer to express as much of the view
+      logic as desired in Python, and includes a pure Python XML
+      expression syntax named stan to facilitate this.  However it
+      also provides rich support for designer-edited templates, using
+      a very small XML attribute language to provide bi-directional
+      template manipulation capability.
+
+      Nevow also includes formless, a declarative syntax for
+      specifying the types of method parameters and exposing these
+      methods to the web.  Forms can be rendered automatically, and
+      form posts will be validated and input coerced, rendering error
+      pages if appropriate.  Once a form post has validated
+      successfully, the method will be called with the coerced values.
+    '';
+    homepage = https://github.com/twisted/nevow;
+    license = licenses.mit;
+  };
+}