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