Merge pull request #137814 from NixOS/swiftclient

python39Packages.python-swiftclient: adopt into openstack team, fix missing keystone client, remove duplicated propagations, enable tests
This commit is contained in:
Sandro 2021-09-14 15:09:00 +02:00 committed by GitHub
commit 2b9d9b36cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,12 @@
{ lib, buildPythonApplication, fetchPypi, requests, six, pbr, setuptools }:
{ lib
, buildPythonApplication
, fetchPypi
, mock
, openstacksdk
, pbr
, python-keystoneclient
, stestr
}:
buildPythonApplication rec {
pname = "python-swiftclient";
@ -9,26 +17,22 @@ buildPythonApplication rec {
sha256 = "sha256-MTtEShTQ+bYoy/PoxS8sQnFlj56KM9QiKFHC5PD3t6A=";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ pbr python-keystoneclient ];
propagatedBuildInputs = [ requests six setuptools ];
checkInputs = [
mock
openstacksdk
stestr
];
# For the tests the following requirements are needed:
# https://github.com/openstack/python-swiftclient/blob/master/test-requirements.txt
#
# The ones missing in nixpkgs (currently) are:
# - hacking
# - keystoneauth
# - oslosphinx
# - stestr
# - reno
# - openstackdocstheme
doCheck = false;
checkPhase = ''
stestr run
'';
meta = with lib; {
homepage = "https://github.com/openstack/python-swiftclient";
description = "Python bindings to the OpenStack Object Storage API";
license = licenses.asl20;
maintainers = with maintainers; [ c0deaddict SuperSandro2000 ];
maintainers = teams.openstack.members;
};
}