depot/third_party/nixpkgs/pkgs/development/python-modules/python-swiftclient/default.nix
Default email d9e13ed064 Project import generated by Copybara.
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
2021-09-22 23:38:15 +08:00

40 lines
755 B
Nix

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