Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 flit-core, 6 mock, 7 pbr, 8 pytest-mock, 9 pytestCheckHook, 10 pytz, 11 requests, 12 setuptools, 13 six, 14}: 15 16buildPythonPackage rec { 17 pname = "jenkinsapi"; 18 version = "0.3.13"; 19 format = "pyproject"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk="; 24 }; 25 26 patches = [ ./pytest-warn-none.patch ]; 27 28 nativeBuildInputs = [ 29 flit-core 30 pbr 31 ]; 32 33 propagatedBuildInputs = [ 34 pytz 35 requests 36 setuptools 37 six 38 ]; 39 40 nativeCheckInputs = [ 41 mock 42 pytest-mock 43 pytestCheckHook 44 ]; 45 46 # don't run tests that try to spin up jenkins 47 disabledTests = [ "systests" ]; 48 49 pythonImportsCheck = [ 50 "jenkinsapi" 51 "jenkinsapi.utils" 52 "jenkinsapi.utils.jenkins_launcher" 53 ]; 54 55 meta = with lib; { 56 description = "Python API for accessing resources on a Jenkins continuous-integration server"; 57 homepage = "https://github.com/salimfadhley/jenkinsapi"; 58 maintainers = with maintainers; [ drets ] ++ teams.deshaw.members; 59 license = licenses.mit; 60 }; 61}