depot/third_party/nixpkgs/pkgs/development/python-modules/python-gitlab/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

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