From 9860ffdc5eee45953c246b0724e59a95d179b0de Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 14 Sep 2024 10:27:21 +0200 Subject: python312Packages.python-gitlab: refactor - update optional-dependencies - remove superfluous comments --- .../python-modules/python-gitlab/default.nix | 26 ++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'pkgs/development/python-modules/python-gitlab') 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"; }; } -- cgit v1.2.3