blob: 2209320f8712bf452d7bcd1f01896233432b4f6c (
plain) (
blame)
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
54
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
# build-system
setuptools,
# dependencies
argcomplete,
requests,
requests-toolbelt,
pyyaml,
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "4.4.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-HRF797QzroJV5ddOcsZgl49Q7oXrYiSMn7Uu9Dw+OBQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
requests
requests-toolbelt
];
passthru.optional-dependencies = {
autocompletion = [ argcomplete ];
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";
mainProgram = "gitlab";
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 ];
};
}
|