pythonPackages.WSME: move expression
This commit is contained in:
parent
3d989e3d7a
commit
9f54b031fd
40
pkgs/development/python-modules/WSME/default.nix
Normal file
40
pkgs/development/python-modules/WSME/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user