1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +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.

45 lines
863 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 = "3.13.1";
2018-12-10 08:43:42 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-LSbJC2OS9r76f7sW/Np75Eqibiropb7icF0dHIE4M/A=";
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
};
}