nixpkgs-suyu/pkgs/development/python-modules/python-gitlab/default.nix
Martin Weinelt f812b261e2
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.
2021-04-27 03:46:57 +02:00

41 lines
780 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, argcomplete
, requests
, requests-toolbelt
, pyyaml
}:
buildPythonPackage rec {
pname = "python-gitlab";
version = "2.7.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0z4amj5xhx5zc3h2m0zrkardm3z5ba9qpjx5n6dczyz77r527yg1";
};
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 ];
};
}