blob: f3dbcc0eeedc4663f2e19f965ed9442f96af96d8 (
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
|
{
lib,
argcomplete,
buildPythonPackage,
fetchPypi,
gql,
pyyaml,
requests-toolbelt,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "7.0.0";
pyproject = true;
src = fetchPypi {
pname = "python_gitlab";
inherit version;
hash = "sha256-5Nk0Qw9k78CeYgi3gsYcwKM4lSd2XgP/vvF/QyPc5EE=";
};
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 = {
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 = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ nyanloutre ];
mainProgram = "gitlab";
};
}
|