14 buildPythonPackage rec {
15 pname = "python-swiftclient";
17 format = "setuptools";
19 disabled = pythonOlder "3.6";
22 inherit pname version;
23 hash = "sha256-1NGFQEE4k/wWrYd5HXQPgj92NDXoIS5o61PWDaJjgjM=";
26 # remove duplicate script that will be created by setuptools from the
27 # entry_points section of setup.cfg
29 sed -i '/^scripts =/d' setup.cfg
30 sed -i '/bin\/swift/d' setup.cfg
33 nativeBuildInputs = [ installShellFiles ];
35 propagatedBuildInputs = [
47 installShellCompletion --cmd swift \
48 --bash tools/swift.bash_completion
49 installManPage doc/manpages/*
56 pythonImportsCheck = [ "swiftclient" ];
59 homepage = "https://github.com/openstack/python-swiftclient";
60 description = "Python bindings to the OpenStack Object Storage API";
61 mainProgram = "swift";
62 license = licenses.asl20;
63 maintainers = teams.openstack.members;