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