2019-11-27 17:57:48 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, isPy3k, twisted }:
|
2018-03-13 23:22:19 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Nevow";
|
2019-12-19 19:31:16 +00:00
|
|
|
version = "0.14.5";
|
2018-03-13 23:22:19 +00:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2019-12-19 19:31:16 +00:00
|
|
|
sha256 = "afb6ba85a5351953578c018fcdb9dfbd62f29a8d46c58bc9652bc000a27223f3";
|
2018-03-13 23:22:19 +00:00
|
|
|
};
|
|
|
|
|
2019-11-27 17:57:48 +00:00
|
|
|
patches = [
|
|
|
|
# Fix builds against recent Twisted.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/twisted/nevow/commit/f1b366f1a73009b6a1df12fa6f4dc464c564c944.patch";
|
|
|
|
sha256 = "147fibcbqh715in8cbkp7jlkh4b3qvn95v1mv9si0ln1747wbby2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-13 23:22:19 +00:00
|
|
|
propagatedBuildInputs = [ twisted ];
|
|
|
|
|
2019-03-27 10:58:21 +00:00
|
|
|
checkInputs = [ twisted ];
|
|
|
|
|
2018-03-13 23:22:19 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|