summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-gitlab
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-02-11 14:03:56 +0100
committerGitHub <noreply@github.com>2023-02-11 14:03:56 +0100
commit86a387351acf96b7137f5f385d978bf3681c7239 (patch)
tree893ce1c726bda9df7ec2e3d1649ba811563570ab /pkgs/development/python-modules/python-gitlab
parent5d012c4bb21fa9bee9f34339f95ef8fffa052d56 (diff)
parentd8d4f25cd2ba0af3a7d35ebce9e05d1eb58b03f4 (diff)
Merge branch 'master' into nixos/hostapd
Diffstat (limited to 'pkgs/development/python-modules/python-gitlab')
-rw-r--r--pkgs/development/python-modules/python-gitlab/default.nix43
1 files changed, 35 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/python-gitlab/default.nix b/pkgs/development/python-modules/python-gitlab/default.nix
index 0c1f7c67e3df..55e11d49d1d1 100644
--- a/pkgs/development/python-modules/python-gitlab/default.nix
+++ b/pkgs/development/python-modules/python-gitlab/default.nix
@@ -1,24 +1,51 @@
-{ stdenv, buildPythonPackage, fetchPypi, requests, mock, httmock, pythonOlder }:
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, argcomplete
+, requests
+, requests-toolbelt
+, pyyaml
+}:
buildPythonPackage rec {
pname = "python-gitlab";
- version = "2.2.0";
+ version = "3.13.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "4c4ea60c8303f4214522b18038df017cae35afda7474efa0b4e19c2e73bc3ae2";
+ hash = "sha256-rVArcrXRE39K831KaK4g/n1sl3j2fL4q7FZveZUFPH0=";
};
- propagatedBuildInputs = [ requests ];
+ propagatedBuildInputs = [
+ requests
+ requests-toolbelt
+ ];
+
+ passthru.optional-dependencies = {
+ autocompletion = [
+ argcomplete
+ ];
+ yaml = [
+ pyyaml
+ ];
+ };
- checkInputs = [ mock httmock ];
+ # Tests rely on a gitlab instance on a local docker setup
+ doCheck = false;
- disabled = pythonOlder "3.6";
+ pythonImportsCheck = [
+ "gitlab"
+ ];
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "Interact with GitLab API";
homepage = "https://github.com/python-gitlab/python-gitlab";
- license = licenses.lgpl3;
+ changelog = "https://github.com/python-gitlab/python-gitlab/blob/v${version}/CHANGELOG.md";
+ license = licenses.lgpl3Only;
maintainers = with maintainers; [ nyanloutre ];
};
}