depot/third_party/nixpkgs/pkgs/development/python-modules/python-swiftclient/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

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