2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-09-19 14:19:46 +00:00
|
|
|
argcomplete,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
gql,
|
|
|
|
pythonOlder,
|
2024-06-05 15:53:02 +00:00
|
|
|
pyyaml,
|
2024-09-19 14:19:46 +00:00
|
|
|
requests-toolbelt,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "python-gitlab";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.11.1";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "python_gitlab";
|
|
|
|
inherit version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-evovnDBhi8Pa7pXSGGoG4c8Yyi+peJDrVf2N3E4zmBI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-05-03 20:48:10 +00:00
|
|
|
requests
|
|
|
|
requests-toolbelt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
autocompletion = [ argcomplete ];
|
2024-09-19 14:19:46 +00:00
|
|
|
graphql = [ gql ] ++ gql.optional-dependencies.httpx;
|
2024-06-05 15:53:02 +00:00
|
|
|
yaml = [ pyyaml ];
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests rely on a gitlab instance on a local docker setup
|
2021-05-03 20:48:10 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gitlab" ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Interact with GitLab API";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://github.com/python-gitlab/python-gitlab";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
|
2022-11-02 22:02:43 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
2024-09-19 14:19:46 +00:00
|
|
|
mainProgram = "gitlab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|