8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
43 lines
805 B
Nix
43 lines
805 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, argcomplete
|
|
, requests
|
|
, requests-toolbelt
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gitlab";
|
|
version = "3.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-/vJdQaYvkdqC7iD3KnKLnGnu80zwowBc27mgtHHVtJg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
argcomplete
|
|
pyyaml
|
|
requests
|
|
requests-toolbelt
|
|
];
|
|
|
|
# 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.lgpl3;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|