mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
60 lines
1 KiB
Nix
60 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
installShellFiles,
|
|
mock,
|
|
openstacksdk,
|
|
pbr,
|
|
python-keystoneclient,
|
|
pythonOlder,
|
|
stestr,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-swiftclient";
|
|
version = "4.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_swiftclient";
|
|
inherit version;
|
|
hash = "sha256-RBYsq0aTaMr9wl4MjE6VornbGkRFakjOCA/iyppLOGM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
build-system = [
|
|
pbr
|
|
];
|
|
|
|
dependencies = [
|
|
python-keystoneclient
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
openstacksdk
|
|
stestr
|
|
];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd swift \
|
|
--bash tools/swift.bash_completion
|
|
installManPage doc/manpages/*
|
|
'';
|
|
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
pythonImportsCheck = [ "swiftclient" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/openstack/python-swiftclient";
|
|
description = "Python bindings to the OpenStack Object Storage API";
|
|
mainProgram = "swift";
|
|
license = licenses.asl20;
|
|
teams = [ teams.openstack ];
|
|
};
|
|
}
|