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