1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, argcomplete 6, requests 7, requests-toolbelt 8, pyyaml 9}: 10 11buildPythonPackage rec { 12 pname = "python-gitlab"; 13 version = "3.15.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-yeZet2Eqn7uKvwM5ly7Kf9enPU2mbJtEb/5SiTCv9TQ="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 requests-toolbelt 26 ]; 27 28 passthru.optional-dependencies = { 29 autocompletion = [ 30 argcomplete 31 ]; 32 yaml = [ 33 pyyaml 34 ]; 35 }; 36 37 # Tests rely on a gitlab instance on a local docker setup 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "gitlab" 42 ]; 43 44 meta = with lib; { 45 description = "Interact with GitLab API"; 46 homepage = "https://github.com/python-gitlab/python-gitlab"; 47 changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md"; 48 license = licenses.lgpl3Only; 49 maintainers = with maintainers; [ nyanloutre ]; 50 }; 51}