23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
|
|
# build-system
|
|
, setuptools
|
|
|
|
# dependencies
|
|
, argcomplete
|
|
, requests
|
|
, requests-toolbelt
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gitlab";
|
|
version = "4.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-HRF797QzroJV5ddOcsZgl49Q7oXrYiSMn7Uu9Dw+OBQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
requests-toolbelt
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
autocompletion = [
|
|
argcomplete
|
|
];
|
|
yaml = [
|
|
pyyaml
|
|
];
|
|
};
|
|
|
|
# Tests rely on a gitlab instance on a local docker setup
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"gitlab"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|