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.11.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-25Rytq5PupaLQJ3DL67iDdZQiQZdqpPgjSG3lqZdZXg=";
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 license = licenses.lgpl3Only;
48 maintainers = with maintainers; [ nyanloutre ];
49 };
50}