diff --git a/pkgs/development/python-modules/python-swiftclient/default.nix b/pkgs/development/python-modules/python-swiftclient/default.nix index b932d5c51e4c..c38431f1c788 100644 --- a/pkgs/development/python-modules/python-swiftclient/default.nix +++ b/pkgs/development/python-modules/python-swiftclient/default.nix @@ -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; }; }