nixpkgs/pkgs/development/python-modules/python-swiftclient/default.nix

39 lines
712 B
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, fetchPypi
, mock
, openstacksdk
, pbr
, python-keystoneclient
, stestr
}:
2018-12-10 07:43:42 +00:00
buildPythonApplication rec {
pname = "python-swiftclient";
version = "3.12.0";
2018-12-10 07:43:42 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MTtEShTQ+bYoy/PoxS8sQnFlj56KM9QiKFHC5PD3t6A=";
2018-12-10 07:43:42 +00:00
};
propagatedBuildInputs = [ pbr python-keystoneclient ];
checkInputs = [
mock
openstacksdk
stestr
];
2018-12-10 07:43:42 +00:00
checkPhase = ''
stestr run
'';
2018-12-10 07:43:42 +00:00
meta = with lib; {
2020-03-31 03:27:58 +00:00
homepage = "https://github.com/openstack/python-swiftclient";
2018-12-10 07:43:42 +00:00
description = "Python bindings to the OpenStack Object Storage API";
license = licenses.asl20;
maintainers = teams.openstack.members;
2018-12-10 07:43:42 +00:00
};
}