pythonPackages.WSME: move expression

This commit is contained in:
Robert Schütz 2018-03-20 15:40:43 +01:00
parent 3d989e3d7a
commit 9f54b031fd
2 changed files with 41 additions and 28 deletions

View File

@ -0,0 +1,40 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pbr, six, simplegeneric, netaddr, pytz, webob
, cornice, nose, webtest, pecan, transaction, cherrypy, sphinx }:
buildPythonPackage rec {
pname = "WSME";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "1nw827iz5g9jlfnfbdi8kva565v0kdjzba2lccziimj09r71w900";
};
checkPhase = ''
# remove turbogears tests as we don't have it packaged
rm tests/test_tg*
# remove flask since we don't have flask-restful
rm tests/test_flask*
# https://bugs.launchpad.net/wsme/+bug/1510823
${if isPy3k then "rm tests/test_cornice.py" else ""}
nosetests tests/
'';
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [
six simplegeneric netaddr pytz webob
];
checkInputs = [
cornice nose webtest pecan transaction cherrypy sphinx
];
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;
};
}

View File

@ -11165,34 +11165,7 @@ in {
};
};
WSME = buildPythonPackage rec {
name = "WSME-${version}";
version = "0.8.0";
src = pkgs.fetchurl {
url = "mirror://pypi/W/WSME/${name}.tar.gz";
sha256 = "1nw827iz5g9jlfnfbdi8kva565v0kdjzba2lccziimj09r71w900";
};
checkPhase = ''
# remove turbogears tests as we don't have it packaged
rm tests/test_tg*
# remove flask since we don't have flask-restful
rm tests/test_flask*
# https://bugs.launchpad.net/wsme/+bug/1510823
${if isPy3k then "rm tests/test_cornice.py" else ""}
nosetests tests/
'';
propagatedBuildInputs = with self; [
pbr six simplegeneric netaddr pytz webob
];
buildInputs = with self; [
cornice nose webtest pecan transaction cherrypy sphinx
];
};
WSME = callPackage ../development/python-modules/WSME { };
zake = buildPythonPackage rec {
name = "zake-${version}";