2016-10-19 10:14:40 +01:00
|
|
|
{ stdenv, fetchurl, python2Packages, openssl, openssh }:
|
2011-03-29 17:15:08 +01:00
|
|
|
|
2016-10-19 10:14:40 +01:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2011-03-30 16:00:53 +01:00
|
|
|
name = "nova-${version}";
|
2015-10-15 14:01:05 +01:00
|
|
|
version = "12.0.0";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
PBR_VERSION = "${version}";
|
2011-02-21 21:53:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-15 14:01:05 +01:00
|
|
|
url = "https://github.com/openstack/nova/archive/${version}.tar.gz";
|
|
|
|
sha256 = "175n1znvmy8f5vqvabc2fa4qy8y17685z4gzpq8984mdsdnpv21w";
|
2011-02-21 21:53:42 +00:00
|
|
|
};
|
|
|
|
|
2015-11-04 10:53:49 +00:00
|
|
|
# otherwise migrate.cfg is not installed
|
|
|
|
patchPhase = ''
|
|
|
|
echo "graft nova" >> MANIFEST.in
|
2016-09-13 15:08:43 +01:00
|
|
|
|
|
|
|
# remove transient error test, see http://hydra.nixos.org/build/40203534
|
|
|
|
rm nova/tests/unit/compute/test_{shelve,compute_utils}.py
|
2015-11-04 10:53:49 +00:00
|
|
|
'';
|
|
|
|
|
2015-10-15 14:01:05 +01:00
|
|
|
# https://github.com/openstack/nova/blob/stable/liberty/requirements.txt
|
2016-10-19 10:14:40 +01:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2016-02-25 14:02:38 +00:00
|
|
|
pbr sqlalchemy boto decorator eventlet jinja2 lxml routes cryptography
|
2015-10-15 14:01:05 +01:00
|
|
|
webob greenlet PasteDeploy paste prettytable sqlalchemy_migrate netaddr
|
|
|
|
netifaces paramiko Babel iso8601 jsonschema keystoneclient requests2 six
|
|
|
|
stevedore websockify rfc3986 os-brick psutil_1 alembic psycopg2 pymysql
|
2015-10-30 18:48:41 +00:00
|
|
|
keystonemiddleware MySQL_python
|
2015-10-15 14:01:05 +01:00
|
|
|
|
|
|
|
# oslo components
|
|
|
|
oslo-rootwrap oslo-reports oslo-utils oslo-i18n oslo-config oslo-context
|
|
|
|
oslo-log oslo-serialization oslo-middleware oslo-db oslo-service oslo-messaging
|
|
|
|
oslo-concurrency oslo-versionedobjects
|
|
|
|
|
|
|
|
# clients
|
|
|
|
cinderclient neutronclient glanceclient
|
|
|
|
];
|
|
|
|
|
2016-10-19 10:14:40 +01:00
|
|
|
buildInputs = with python2Packages; [
|
2015-10-15 14:01:05 +01:00
|
|
|
coverage fixtures mock mox3 subunit requests-mock pillow oslosphinx
|
|
|
|
oslotest testrepository testresources testtools tempest-lib bandit
|
|
|
|
oslo-vmware pep8 barbicanclient ironicclient openssl openssh
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp -prvd etc $out/etc
|
|
|
|
|
|
|
|
# check all binaries don't crash
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
case "$i" in
|
|
|
|
*nova-dhcpbridge*)
|
|
|
|
:
|
|
|
|
;;
|
|
|
|
*nova-rootwrap*)
|
|
|
|
:
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
$i --help
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2011-02-21 21:53:42 +00:00
|
|
|
homepage = http://nova.openstack.org/;
|
|
|
|
description = "OpenStack Compute (a.k.a. Nova), a cloud computing fabric controller";
|
2015-10-15 14:01:05 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-02-21 21:53:42 +00:00
|
|
|
};
|
|
|
|
}
|