f812b261e2
Fixes the build, disable tests, as they rely on a local GitLab instance running on docker. Adds pythonImportsCheck.
41 lines
780 B
Nix
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 ];
|
|
};
|
|
}
|