1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 05:19:17 +03:00
nixpkgs/pkgs/development/python-modules/python-swiftclient/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, installShellFiles
, mock
, openstacksdk
, pbr
, python-keystoneclient
, pythonOlder
, stestr
}:
2018-12-10 08:43:42 +01:00
buildPythonPackage rec {
2018-12-10 08:43:42 +01:00
pname = "python-swiftclient";
version = "4.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2018-12-10 08:43:42 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-+CKY5KSPfL3WgPJjjIXRynrhp27b4wA20htM16KcCes=";
2018-12-10 08:43:42 +01:00
};
nativeBuildInputs = [
installShellFiles
];
propagatedBuildInputs = [
pbr
python-keystoneclient
];
checkInputs = [
mock
openstacksdk
stestr
];
2018-12-10 08:43:42 +01:00
postInstall = ''
installShellCompletion --cmd swift \
--bash tools/swift.bash_completion
installManPage doc/manpages/*
'';
checkPhase = ''
stestr run
'';
2018-12-10 08:43:42 +01:00
pythonImportsCheck = [
"swiftclient"
];
2018-12-10 08:43:42 +01:00
meta = with lib; {
2020-03-31 03:27:58 +00:00
homepage = "https://github.com/openstack/python-swiftclient";
2018-12-10 08:43:42 +01:00
description = "Python bindings to the OpenStack Object Storage API";
license = licenses.asl20;
maintainers = teams.openstack.members;
2018-12-10 08:43:42 +01:00
};
}