Merge pull request #50285 from marsam/feature/async_generator-python35
python3Packages.async_generator: fix build on python3.5
This commit is contained in:
commit
8d88e4f6c7
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest, pytest-asyncio }:
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy35, pytest, pytest-asyncio }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "async_generator";
|
pname = "async_generator";
|
||||||
|
@ -17,6 +17,9 @@ buildPythonPackage rec {
|
||||||
pytest -W error -ra -v --pyargs async_generator
|
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; {
|
meta = with lib; {
|
||||||
description = "Async generators and context managers for Python 3.5+";
|
description = "Async generators and context managers for Python 3.5+";
|
||||||
homepage = https://github.com/python-trio/async_generator;
|
homepage = https://github.com/python-trio/async_generator;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k }:
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, isPy3k, isPy35, async_generator }:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-asyncio";
|
pname = "pytest-asyncio";
|
||||||
version = "0.9.0";
|
version = "0.9.0";
|
||||||
|
@ -10,7 +10,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "fbd92c067c16111174a1286bfb253660f1e564e5146b39eeed1133315cf2c2cf";
|
sha256 = "fbd92c067c16111174a1286bfb253660f1e564e5146b39eeed1133315cf2c2cf";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
buildInputs = [ pytest ]
|
||||||
|
++ stdenv.lib.optionals isPy35 [ async_generator ];
|
||||||
|
|
||||||
# No tests in archive
|
# No tests in archive
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
Loading…
Reference in a new issue