mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
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>
54 lines
1.1 KiB
Nix
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";
|
|
};
|
|
}
|