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