python3Packages.python-gitlab: 2.6.0 -> 2.7.1

Fixes the build, disable tests, as they rely on a local GitLab instance
running on docker. Adds pythonImportsCheck.
This commit is contained in:
Martin Weinelt 2021-04-27 03:46:57 +02:00
parent 7fe184a14a
commit f812b261e2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,19 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, requests, mock, httmock, pythonOlder, pytest, responses }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, argcomplete
, requests
, requests-toolbelt
, pyyaml
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "2.6.0";
version = "2.7.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "a862c6874524ab585b725a17b2cd2950fc09d6d74205f40a11be2a4e8f2dcaa1";
sha256 = "0z4amj5xhx5zc3h2m0zrkardm3z5ba9qpjx5n6dczyz77r527yg1";
};
propagatedBuildInputs = [ requests ];
propagatedBuildInputs = [
argcomplete
pyyaml
requests
requests-toolbelt
];
checkInputs = [ mock httmock pytest responses ];
# tests rely on a gitlab instance on a local docker setup
doCheck = false;
disabled = pythonOlder "3.6";
pythonImportsCheck = [
"gitlab"
];
meta = with lib; {
description = "Interact with GitLab API";