python3Packages.gevent: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-01-18 09:05:49 +01:00 committed by Martin Weinelt
parent a17e0d7aa4
commit 405b51f2ae

View File

@ -1,5 +1,13 @@
{ lib, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
{ lib
, fetchPypi
, buildPythonPackage
, isPyPy
, python
, libev
, greenlet
, zope_event
, zope_interface
, pythonOlder
}:
buildPythonPackage rec {
@ -7,29 +15,36 @@ buildPythonPackage rec {
version = "21.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "f48b64578c367b91fa793bf8eaaaf4995cb93c8bc45860e473bf868070ad094e";
hash = "sha256-9ItkV4w2e5H6eTv46qr0mVy5PIvEWGDkc7+GgHCtCU4=";
};
buildInputs = [ libev ];
propagatedBuildInputs = [
zope_interface
] ++ lib.optionals (!isPyPy) [ greenlet ];
buildInputs = [
libev
];
checkPhase = ''
cd greentest
${python.interpreter} testrunner.py
'';
propagatedBuildInputs = [
zope_event
zope_interface
] ++ lib.optionals (!isPyPy) [
greenlet
];
# Bunch of failures.
doCheck = false;
pythonImportsCheck = [
"gevent"
];
meta = with lib; {
description = "Coroutine-based networking library";
homepage = "http://www.gevent.org/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
};
}