nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 53 lines 948 B view raw
1{ lib 2, buildPythonApplication 3, fetchPypi 4, mock 5, openstacksdk 6, pbr 7, python-keystoneclient 8, pythonOlder 9, stestr 10}: 11 12buildPythonApplication rec { 13 pname = "python-swiftclient"; 14 version = "4.0.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-V7bx/yO0ZoQ4AqaBb0trvGiWtq0F1ld6/udiK+OilTg="; 22 }; 23 24 propagatedBuildInputs = [ 25 pbr 26 python-keystoneclient 27 ]; 28 29 checkInputs = [ 30 mock 31 openstacksdk 32 stestr 33 ]; 34 35 postInstall = '' 36 install -Dm644 tools/swift.bash_completion $out/share/bash_completion.d/swift 37 ''; 38 39 checkPhase = '' 40 stestr run 41 ''; 42 43 pythonImportsCheck = [ 44 "swiftclient" 45 ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/openstack/python-swiftclient"; 49 description = "Python bindings to the OpenStack Object Storage API"; 50 license = licenses.asl20; 51 maintainers = teams.openstack.members; 52 }; 53}