python39Packages.python-swiftclient: adopt into openstack team, fix missing keystone client, remove duplicated propagations, enable tests

This commit is contained in:
Sandro Jäckel 2021-09-14 14:26:51 +02:00
parent 415694cae8
commit 7fb09163a2

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;
};
}