2021-04-27 02:46:57 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, argcomplete
|
|
|
|
, requests
|
|
|
|
, requests-toolbelt
|
|
|
|
, pyyaml
|
|
|
|
}:
|
2018-11-04 11:47:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-04-28 23:12:27 +01:00
|
|
|
pname = "python-gitlab";
|
2022-01-29 08:05:07 +00:00
|
|
|
version = "3.1.1";
|
2022-01-06 08:41:46 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-11-04 11:47:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-29 08:05:07 +00:00
|
|
|
sha256 = "sha256-ytEzjB/xp5GnuueZXcYh4mx3378iW63kVqzsdRJ4KCU=";
|
2018-11-04 11:47:46 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 02:46:57 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
argcomplete
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
requests-toolbelt
|
|
|
|
];
|
2018-11-04 11:47:46 +00:00
|
|
|
|
2021-04-27 02:46:57 +01:00
|
|
|
# tests rely on a gitlab instance on a local docker setup
|
|
|
|
doCheck = false;
|
2018-11-04 11:47:46 +00:00
|
|
|
|
2021-04-27 02:46:57 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gitlab"
|
|
|
|
];
|
2020-04-28 23:52:44 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-04 11:47:46 +00:00
|
|
|
description = "Interact with GitLab API";
|
2020-04-28 23:12:27 +01:00
|
|
|
homepage = "https://github.com/python-gitlab/python-gitlab";
|
|
|
|
license = licenses.lgpl3;
|
2018-11-04 11:47:46 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|