depot/third_party/nixpkgs/pkgs/development/python-modules/WSME/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

49 lines
1.4 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k
, pbr, six, simplegeneric, netaddr, pytz, webob
, cornice, nose, webtest, pecan, transaction, cherrypy, sphinx
, flask, flask-restful, suds-jurko, glibcLocales }:
buildPythonPackage rec {
pname = "WSME";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
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 ];
propagatedBuildInputs = [
six simplegeneric netaddr pytz webob
];
checkInputs = [
cornice nose webtest pecan transaction cherrypy sphinx
flask flask-restful suds-jurko glibcLocales
];
meta = with lib; {
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
homepage = "http://git.openstack.org/cgit/openstack/wsme";
license = licenses.mit;
};
}