depot/third_party/nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

53 lines
1.1 KiB
Nix

{
lib,
argcomplete,
buildPythonPackage,
fetchPypi,
gql,
pythonOlder,
pyyaml,
requests-toolbelt,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "4.12.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "python_gitlab";
inherit version;
hash = "sha256-jBQKJgOtjv9/yrbz+qv1/Iuquo3vEl6zCaMtaqOiOlY=";
};
build-system = [ setuptools ];
dependencies = [
requests
requests-toolbelt
];
optional-dependencies = {
autocompletion = [ argcomplete ];
graphql = [ gql ] ++ gql.optional-dependencies.httpx;
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 ];
mainProgram = "gitlab";
};
}