2016-10-19 11:14:40 +02:00
|
|
|
{ stdenv, fetchurl, python2Packages, xmlsec, which, dnsmasq }:
|
2015-10-22 15:16:32 +02:00
|
|
|
|
2016-10-19 11:14:40 +02:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2015-10-22 15:16:32 +02:00
|
|
|
name = "neutron-${version}";
|
|
|
|
version = "7.0.0";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
PBR_VERSION = "${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/openstack/neutron/archive/${version}.tar.gz";
|
|
|
|
sha256 = "02ll081xly7zfjmgkal81fy3aplbnn5zgx8xfy3yy1nv3kfnyi40";
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://github.com/openstack/neutron/blob/stable/liberty/requirements.txt
|
2016-10-19 11:14:40 +02:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
2015-10-22 15:16:32 +02:00
|
|
|
pbr paste PasteDeploy routes debtcollector eventlet greenlet httplib2 requests2
|
2016-02-25 15:02:38 +01:00
|
|
|
jinja2 keystonemiddleware netaddr retrying sqlalchemy webob alembic six
|
2015-10-30 19:48:41 +01:00
|
|
|
stevedore pecan ryu networking-hyperv MySQL_python
|
2015-10-22 15:16:32 +02:00
|
|
|
|
|
|
|
# clients
|
|
|
|
keystoneclient neutronclient novaclient
|
|
|
|
|
|
|
|
# oslo components
|
|
|
|
oslo-concurrency oslo-config oslo-context oslo-db oslo-i18n oslo-log oslo-messaging
|
|
|
|
oslo-middleware oslo-policy oslo-rootwrap oslo-serialization oslo-service oslo-utils
|
|
|
|
oslo-versionedobjects
|
|
|
|
];
|
|
|
|
|
2015-11-05 19:23:16 +01:00
|
|
|
# make sure we include migrations
|
2015-12-03 11:05:19 +01:00
|
|
|
prePatch = ''
|
2015-11-05 19:23:16 +01:00
|
|
|
echo "graft neutron" >> MANIFEST.in
|
2015-12-03 11:05:19 +01:00
|
|
|
substituteInPlace etc/neutron/rootwrap.d/dhcp.filters --replace "/sbin/dnsmasq" "${dnsmasq}/bin/dnsmasq"
|
2015-11-05 19:23:16 +01:00
|
|
|
'';
|
2015-12-03 11:05:19 +01:00
|
|
|
patches = [ ./neutron-iproute-4.patch ];
|
2015-11-05 19:23:16 +01:00
|
|
|
|
2016-10-19 11:14:40 +02:00
|
|
|
buildInputs = with python2Packages; [
|
2015-10-22 15:16:32 +02:00
|
|
|
cliff coverage fixtures mock subunit requests-mock oslosphinx testrepository
|
|
|
|
testtools testresources testscenarios webtest oslotest os-testr tempest-lib
|
|
|
|
ddt pep8
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# requires extra optional dependencies
|
|
|
|
# TODO: package networking_mlnx, networking_vsphere, bsnstacklib, XenAPI
|
|
|
|
rm $out/bin/{neutron-mlnx-agent,neutron-ovsvapp-agent,neutron-restproxy-agent,neutron-rootwrap-xen-dom0}
|
|
|
|
|
|
|
|
# check all binaries don't crash
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
case "$i" in
|
|
|
|
*neutron-pd-notify|*neutron-rootwrap-daemon|*neutron-rootwrap)
|
|
|
|
:
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
$i --help
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://neutron.openstack.org/;
|
|
|
|
description = "Virtual network service for Openstack";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-09-28 14:57:26 +02:00
|
|
|
# Marked as broken due to needing an update for security issues.
|
|
|
|
# See: https://github.com/NixOS/nixpkgs/issues/18856
|
|
|
|
broken = true;
|
2015-10-22 15:16:32 +02:00
|
|
|
};
|
|
|
|
}
|