Unverified Commit 9860ffdc authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.python-gitlab: refactor

- update optional-dependencies
- remove superfluous comments
parent 35bc9b0e
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
{
  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";
  };
}