python3Packages.GitPython: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2021-01-31 18:35:40 +01:00
parent c87f48b70a
commit ee0f592bb0

View File

@ -1,8 +1,16 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, substituteAll, git, gitdb, mock, nose, ddt }:
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, substituteAll
, git
, gitdb
, ddt
}:
buildPythonPackage rec {
version = "3.1.12";
pname = "GitPython";
version = "3.1.12";
disabled = isPy27; # no longer supported
src = fetchPypi {
@ -17,16 +25,16 @@ buildPythonPackage rec {
})
];
checkInputs = [ nose ] ++ lib.optional isPy27 mock;
propagatedBuildInputs = [ gitdb ddt ];
# Tests require a git repo
doCheck = false;
pythonImportsCheck = [ "git" ];
meta = {
meta = with lib; {
description = "Python Git Library";
maintainers = [ ];
homepage = "https://github.com/gitpython-developers/GitPython";
license = lib.licenses.bsd3;
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}