2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
argcomplete,
|
|
|
|
requests,
|
|
|
|
requests-toolbelt,
|
|
|
|
pyyaml,
|
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-07-27 06:49:29 +00:00
|
|
|
version = "4.8.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "python_gitlab";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-wsTXsc1QPZBa/l38Dz9mGZNDYfdq6FXGzsmmZoZNN88=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
requests-toolbelt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
autocompletion = [ argcomplete ];
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gitlab";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|