depot/third_party/nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03: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.11.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "python_gitlab";
inherit version;
hash = "sha256-evovnDBhi8Pa7pXSGGoG4c8Yyi+peJDrVf2N3E4zmBI=";
};
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";
};
}