python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / python-gitlab / default.nix
blob6b9323e44e478ab5a2b4e3288415f64a8cf0d014
2   lib,
3   argcomplete,
4   buildPythonPackage,
5   fetchPypi,
6   gql,
7   pythonOlder,
8   pyyaml,
9   requests-toolbelt,
10   requests,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "python-gitlab";
16   version = "4.12.2";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchPypi {
22     pname = "python_gitlab";
23     inherit version;
24     hash = "sha256-jBQKJgOtjv9/yrbz+qv1/Iuquo3vEl6zCaMtaqOiOlY=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [
30     requests
31     requests-toolbelt
32   ];
34   optional-dependencies = {
35     autocompletion = [ argcomplete ];
36     graphql = [ gql ] ++ gql.optional-dependencies.httpx;
37     yaml = [ pyyaml ];
38   };
40   # Tests rely on a gitlab instance on a local docker setup
41   doCheck = false;
43   pythonImportsCheck = [ "gitlab" ];
45   meta = with lib; {
46     description = "Interact with GitLab API";
47     homepage = "https://github.com/python-gitlab/python-gitlab";
48     changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
49     license = licenses.lgpl3Only;
50     maintainers = with maintainers; [ nyanloutre ];
51     mainProgram = "gitlab";
52   };