python3Packages.async_generator: fix build on python3.5

This commit is contained in:
Mario Rodas
2018-11-12 18:12:13 -05:00
parent d3bdf3fe98
commit aa8ff56401
2 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, pytest-asyncio }:
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy35, pytest, pytest-asyncio }:
buildPythonPackage rec {
pname = "async_generator";
@@ -17,6 +17,9 @@ buildPythonPackage rec {
pytest -W error -ra -v --pyargs async_generator
'';
# disable tests on python3.5 to avoid circular dependency with pytest-asyncio
doCheck = !isPy35;
meta = with lib; {
description = "Async generators and context managers for Python 3.5+";
homepage = https://github.com/python-trio/async_generator;