depot/third_party/nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

61 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";
mainProgram = "gitlab";
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 ];
};
}