1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-02 05:49:22 +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.

53 lines
934 B
Nix
Raw Normal View History

{ lib
, buildPythonApplication
, fetchPypi
, mock
, openstacksdk
, pbr
, python-keystoneclient
, stestr
}:
2018-12-10 08:43:42 +01:00
buildPythonApplication rec {
pname = "python-swiftclient";
version = "4.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2018-12-10 08:43:42 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-V7bx/yO0ZoQ4AqaBb0trvGiWtq0F1ld6/udiK+OilTg=";
2018-12-10 08:43:42 +01:00
};
propagatedBuildInputs = [
pbr
python-keystoneclient
];
checkInputs = [
mock
openstacksdk
stestr
];
2018-12-10 08:43:42 +01:00
postInstall = ''
install -Dm644 tools/swift.bash_completion $out/share/bash_completion.d/swift
'';
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
};
}