diff options
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"; }; } |
