2015-11-04 11:24:23 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages, xmlsec, which, openssl }:
|
2015-10-22 14:16:32 +01:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "keystone-${version}";
|
|
|
|
version = "8.0.0";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
PBR_VERSION = "${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/openstack/keystone/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1xbrs7xgwjzrs07zyxxcl2lq18dh582gd6lx1zzzji8c0qmffy0z";
|
|
|
|
};
|
|
|
|
|
|
|
|
# remove on next version bump
|
|
|
|
patches = [ ./remove-oslo-policy-tests.patch ];
|
|
|
|
|
|
|
|
# https://github.com/openstack/keystone/blob/stable/liberty/requirements.txt
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
pbr webob eventlet greenlet PasteDeploy paste routes cryptography six
|
|
|
|
sqlalchemy_1_0 sqlalchemy_migrate stevedore passlib keystoneclient memcached
|
|
|
|
keystonemiddleware oauthlib pysaml2 dogpile_cache jsonschema pycadf msgpack
|
2015-10-30 18:48:41 +00:00
|
|
|
xmlsec MySQL_python
|
2015-10-22 14:16:32 +01:00
|
|
|
|
|
|
|
# oslo
|
|
|
|
oslo-cache oslo-concurrency oslo-config oslo-context oslo-messaging oslo-db
|
|
|
|
oslo-i18n oslo-log oslo-middleware oslo-policy oslo-serialization oslo-service
|
|
|
|
oslo-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pythonPackages; [
|
|
|
|
coverage fixtures mock subunit tempest-lib testtools testrepository
|
2015-11-04 15:23:15 +00:00
|
|
|
ldap ldappool webtest requests2 oslotest pep8 pymongo which
|
2015-10-22 14:16:32 +01:00
|
|
|
];
|
|
|
|
|
2015-11-04 11:24:23 +00:00
|
|
|
makeWrapperArgs = ["--prefix PATH : '${openssl}/bin:$PATH'"];
|
|
|
|
|
2015-10-22 14:16:32 +01:00
|
|
|
postInstall = ''
|
2015-11-04 11:24:23 +00:00
|
|
|
# install .ini files
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cp etc/* $out/etc
|
|
|
|
|
2015-10-22 14:16:32 +01:00
|
|
|
# check all binaries don't crash
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
$i --help
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://keystone.openstack.org/;
|
|
|
|
description = "Authentication, authorization and service discovery mechanisms via HTTP";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|