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 = "2.10.1";
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "7afa7d7c062fa62c173190452265a30feefb844428efc58ea5244f3b9fc0d40f";
19 };
20
21 propagatedBuildInputs = [
22 argcomplete
23 pyyaml
24 requests
25 requests-toolbelt
26 ];
27
28 # tests rely on a gitlab instance on a local docker setup
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "gitlab"
33 ];
34
35 meta = with lib; {
36 description = "Interact with GitLab API";
37 homepage = "https://github.com/python-gitlab/python-gitlab";
38 license = licenses.lgpl3;
39 maintainers = with maintainers; [ nyanloutre ];
40 };
41}