Files
nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.1 KiB
Nix

{
lib,
argcomplete,
buildPythonPackage,
fetchPypi,
gql,
pythonOlder,
pyyaml,
requests-toolbelt,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "7.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "python_gitlab";
inherit version;
hash = "sha256-5Nk0Qw9k78CeYgi3gsYcwKM4lSd2XgP/vvF/QyPc5EE=";
};
build-system = [ setuptools ];
dependencies = [
requests
requests-toolbelt
];
optional-dependencies = {
autocompletion = [ argcomplete ];
graphql = [ gql ] ++ gql.optional-dependencies.httpx;
yaml = [ pyyaml ];
};
# Tests rely on a gitlab instance on a local docker setup
doCheck = false;
pythonImportsCheck = [ "gitlab" ];
meta = {
description = "Interact with GitLab API";
homepage = "https://github.com/python-gitlab/python-gitlab";
changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ nyanloutre ];
mainProgram = "gitlab";
};
}