44 lines
876 B
Nix
44 lines
876 B
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchPypi
|
|
, mock
|
|
, openstacksdk
|
|
, pbr
|
|
, python-keystoneclient
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "python-swiftclient";
|
|
version = "3.13.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b200dcfbc6842bd4cac29efd0ea9ef34d3b8625957472ba7aa3ae0242437e2cc";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pbr python-keystoneclient ];
|
|
|
|
checkInputs = [
|
|
mock
|
|
openstacksdk
|
|
stestr
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 tools/swift.bash_completion $out/share/bash_completion.d/swift
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|