depot/third_party/nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

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 ];
};
}