at 24.05-pre 1.5 kB view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, twisted }: 2 3buildPythonPackage rec { 4 pname = "Nevow"; 5 version = "0.14.5"; 6 disabled = isPy3k; 7 8 src = fetchPypi { 9 inherit version pname; 10 sha256 = "afb6ba85a5351953578c018fcdb9dfbd62f29a8d46c58bc9652bc000a27223f3"; 11 }; 12 13 propagatedBuildInputs = [ twisted ]; 14 15 nativeCheckInputs = [ twisted ]; 16 17 checkPhase = '' 18 trial formless nevow 19 ''; 20 21 meta = with lib; { 22 description = "Nevow, a web application construction kit for Python"; 23 longDescription = '' 24 Nevow - Pronounced as the French "nouveau", or "noo-voh", Nevow 25 is a web application construction kit written in Python. It is 26 designed to allow the programmer to express as much of the view 27 logic as desired in Python, and includes a pure Python XML 28 expression syntax named stan to facilitate this. However it 29 also provides rich support for designer-edited templates, using 30 a very small XML attribute language to provide bi-directional 31 template manipulation capability. 32 33 Nevow also includes formless, a declarative syntax for 34 specifying the types of method parameters and exposing these 35 methods to the web. Forms can be rendered automatically, and 36 form posts will be validated and input coerced, rendering error 37 pages if appropriate. Once a form post has validated 38 successfully, the method will be called with the coerced values. 39 ''; 40 homepage = "https://github.com/twisted/nevow"; 41 license = licenses.mit; 42 }; 43}