0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
50 lines
905 B
Nix
50 lines
905 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, argcomplete
|
|
, requests
|
|
, requests-toolbelt
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gitlab";
|
|
version = "3.12.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-VnOQwrk2kNrmLtlzi/nyIfpFwBN4/fiWCJ2/fIoTT70=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|