python310Packages.python-gitlab: add optional-dependencies

- specify license
This commit is contained in:
Fabian Affolter 2022-10-30 19:13:22 +01:00 committed by GitHub
parent ffdd42b7af
commit a2144b36c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,17 +17,24 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-25Rytq5PupaLQJ3DL67iDdZQiQZdqpPgjSG3lqZdZXg="; hash = "sha256-25Rytq5PupaLQJ3DL67iDdZQiQZdqpPgjSG3lqZdZXg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
argcomplete
pyyaml
requests requests
requests-toolbelt requests-toolbelt
]; ];
# tests rely on a gitlab instance on a local docker setup passthru.optional-dependencies = {
autocompletion = [
argcomplete
];
yaml = [
pyyaml
];
};
# Tests rely on a gitlab instance on a local docker setup
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
@ -37,7 +44,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Interact with GitLab API"; description = "Interact with GitLab API";
homepage = "https://github.com/python-gitlab/python-gitlab"; homepage = "https://github.com/python-gitlab/python-gitlab";
license = licenses.lgpl3; license = licenses.lgpl3Only;
maintainers = with maintainers; [ nyanloutre ]; maintainers = with maintainers; [ nyanloutre ];
}; };
} }