nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 79 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 ddt, 5 fetchFromGitHub, 6 jsonschema, 7 keystoneauth1, 8 openstackdocstheme, 9 osc-lib, 10 oslo-i18n, 11 oslo-log, 12 oslo-utils, 13 pbr, 14 requests-mock, 15 requests, 16 setuptools, 17 sphinxHook, 18 stestr, 19 stevedore, 20}: 21 22buildPythonPackage rec { 23 pname = "python-zaqarclient"; 24 version = "4.3.0"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "openstack"; 29 repo = "python-zaqarclient"; 30 tag = version; 31 hash = "sha256-AmwICYc7l1LicP47BLS/Eib0NktX0MI24OLnUGtyn20="; 32 }; 33 34 env.PBR_VERSION = version; 35 36 build-system = [ 37 pbr 38 setuptools 39 ]; 40 41 nativeBuildInputs = [ 42 openstackdocstheme 43 sphinxHook 44 ]; 45 46 sphinxBuilders = [ "man" ]; 47 48 dependencies = [ 49 jsonschema 50 keystoneauth1 51 osc-lib 52 oslo-i18n 53 oslo-log 54 oslo-utils 55 requests 56 stevedore 57 ]; 58 59 nativeCheckInputs = [ 60 ddt 61 requests-mock 62 stestr 63 ]; 64 65 checkPhase = '' 66 runHook preCheck 67 stestr run 68 runHook postCheck 69 ''; 70 71 pythonImportsCheck = [ "zaqarclient" ]; 72 73 meta = { 74 homepage = "https://github.com/openstack/python-zaqarclient"; 75 description = "Client library for OpenStack Zaqar API"; 76 license = lib.licenses.asl20; 77 teams = [ lib.teams.openstack ]; 78 }; 79}