diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-09-14 10:27:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 10:27:21 +0200 |
| commit | 9860ffdc5eee45953c246b0724e59a95d179b0de (patch) | |
| tree | 568654f3e46e3a02ede09d03ccf6953a564d92e9 /pkgs/development/python-modules/python-gitlab | |
| parent | 35bc9b0e162eaf50935626e6fd9b87fd18b935ee (diff) | |
python312Packages.python-gitlab: refactor
- update optional-dependencies
- remove superfluous comments
Diffstat (limited to 'pkgs/development/python-modules/python-gitlab')
| -rw-r--r-- | pkgs/development/python-modules/python-gitlab/default.nix | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/python-gitlab/default.nix b/pkgs/development/python-modules/python-gitlab/default.nix index 65c9c16c0d82..33a15d52d7ed 100644 --- a/pkgs/development/python-modules/python-gitlab/default.nix +++ b/pkgs/development/python-modules/python-gitlab/default.nix @@ -1,17 +1,14 @@ { lib, + argcomplete, buildPythonPackage, - pythonOlder, fetchPypi, - - # build-system - setuptools, - - # dependencies - argcomplete, - requests, - requests-toolbelt, + gql, + pythonOlder, pyyaml, + requests-toolbelt, + requests, + setuptools, }: buildPythonPackage rec { @@ -19,7 +16,7 @@ buildPythonPackage rec { version = "4.11.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { pname = "python_gitlab"; @@ -27,15 +24,16 @@ buildPythonPackage rec { hash = "sha256-evovnDBhi8Pa7pXSGGoG4c8Yyi+peJDrVf2N3E4zmBI="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ requests requests-toolbelt ]; - passthru.optional-dependencies = { + optional-dependencies = { autocompletion = [ argcomplete ]; + graphql = [ gql ] ++ gql.optional-dependencies.httpx; yaml = [ pyyaml ]; }; @@ -46,10 +44,10 @@ buildPythonPackage rec { 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 ]; + mainProgram = "gitlab"; }; } |
