pythonPackages.WSME: fix build
* Remove unneeded patch * Run tests properly (misspelled before) * Update homepage & add changelog * Sort dependencies
This commit is contained in:
parent
d45ea33a85
commit
143289ad5b
|
@ -1,7 +1,23 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
{ lib
|
||||||
, pbr, six, simplegeneric, netaddr, pytz, webob
|
, buildPythonPackage
|
||||||
, cornice, nose, webtest, pecan, transaction, cherrypy, sphinx
|
, fetchPypi
|
||||||
, flask, flask-restful, suds-jurko, glibcLocales }:
|
, pbr
|
||||||
|
, six
|
||||||
|
, simplegeneric
|
||||||
|
, netaddr
|
||||||
|
, pytz
|
||||||
|
, webob
|
||||||
|
# Test inputs
|
||||||
|
, cherrypy
|
||||||
|
, flask
|
||||||
|
, flask-restful
|
||||||
|
, glibcLocales
|
||||||
|
, nose
|
||||||
|
, pecan
|
||||||
|
, sphinx
|
||||||
|
, transaction
|
||||||
|
, webtest
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "WSME";
|
pname = "WSME";
|
||||||
|
@ -12,38 +28,37 @@ buildPythonPackage rec {
|
||||||
sha256 = "965b9ce48161e5c50d84aedcf50dca698f05bf07e9d489201bccaec3141cd304";
|
sha256 = "965b9ce48161e5c50d84aedcf50dca698f05bf07e9d489201bccaec3141cd304";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# remove turbogears tests as we don't have it packaged
|
|
||||||
rm tests/test_tg*
|
|
||||||
# WSME seems incompatible with recent SQLAlchemy version
|
|
||||||
rm wsmeext/tests/test_sqlalchemy*
|
|
||||||
# https://bugs.launchpad.net/wsme/+bug/1510823
|
|
||||||
${if isPy3k then "rm tests/test_cornice.py" else ""}
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhae = ''
|
|
||||||
nosetests --exclude test_buildhtml \
|
|
||||||
--exlcude test_custom_clientside_error \
|
|
||||||
--exclude test_custom_non_http_clientside_error
|
|
||||||
'';
|
|
||||||
|
|
||||||
# UnicodeEncodeError, ImportError, ...
|
|
||||||
doCheck = !isPy3k;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pbr ];
|
nativeBuildInputs = [ pbr ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six simplegeneric netaddr pytz webob
|
netaddr
|
||||||
|
pytz
|
||||||
|
simplegeneric
|
||||||
|
six
|
||||||
|
webob
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
cornice nose webtest pecan transaction cherrypy sphinx
|
nose
|
||||||
flask flask-restful suds-jurko glibcLocales
|
cherrypy
|
||||||
|
flask
|
||||||
|
flask-restful
|
||||||
|
glibcLocales
|
||||||
|
pecan
|
||||||
|
sphinx
|
||||||
|
transaction
|
||||||
|
webtest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# from tox.ini, tests don't work with pytest
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
|
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
|
||||||
homepage = "http://git.openstack.org/cgit/openstack/wsme";
|
homepage = "https://pythonhosted.org/WSME/";
|
||||||
|
changelog = "https://pythonhosted.org/WSME/changes.html";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue