Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-gitlab / default.nix
blob3703843091d2c85a380def22dd6151a27ac25ed6
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
6 # build-system
7 , setuptools
9 # dependencies
10 , argcomplete
11 , requests
12 , requests-toolbelt
13 , pyyaml
16 buildPythonPackage rec {
17   pname = "python-gitlab";
18   version = "4.4.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-HRF797QzroJV5ddOcsZgl49Q7oXrYiSMn7Uu9Dw+OBQ=";
26   };
28   nativeBuildInputs = [
29     setuptools
30   ];
32   propagatedBuildInputs = [
33     requests
34     requests-toolbelt
35   ];
37   passthru.optional-dependencies = {
38     autocompletion = [
39       argcomplete
40     ];
41     yaml = [
42       pyyaml
43     ];
44   };
46   # Tests rely on a gitlab instance on a local docker setup
47   doCheck = false;
49   pythonImportsCheck = [
50     "gitlab"
51   ];
53   meta = with lib; {
54     description = "Interact with GitLab API";
55     mainProgram = "gitlab";
56     homepage = "https://github.com/python-gitlab/python-gitlab";
57     changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
58     license = licenses.lgpl3Only;
59     maintainers = with maintainers; [ nyanloutre ];
60   };