python3Packages.streamz: disable kafka tests

This commit is contained in:
Jonathan Ringer 2019-12-15 21:18:31 -08:00 committed by Jon
parent 7139b127b3
commit 229b2b57ee

View File

@ -1,11 +1,9 @@
{ lib { lib, buildPythonPackage, fetchPypi, fetchpatch
, buildPythonPackage
, fetchPypi
, tornado , tornado
, toolz , toolz
, zict , zict
, six , six
, pytest_4 , pytest
, networkx , networkx
, distributed , distributed
, confluent-kafka , confluent-kafka
@ -22,7 +20,21 @@ buildPythonPackage rec {
sha256 = "127rpdjgkcyjifmkqbhmqfbzlgi32n54rybrdxja610qr906y40c"; sha256 = "127rpdjgkcyjifmkqbhmqfbzlgi32n54rybrdxja610qr906y40c";
}; };
patches = [
# fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
( fetchpatch {
url = "https://github.com/python-streamz/streamz/commit/f8b7bdb6bcb9dd107677e82e755ff4695bf0c4be.patch";
sha256 = "1b2frp0j369gf55plxk2pigblhsc44m0rm9az01y83cjlcm26x2s";
})
# also, fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
( fetchpatch {
url = "https://github.com/python-streamz/streamz/commit/f7603f4cbea54f1548885881206a3ca9d6e52250.patch";
sha256 = "1125kqiaz6b3cifz0yk1zrkxj5804lfzl4kc58jhqajv8rsrbs45";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
networkx
tornado tornado
toolz toolz
zict zict
@ -33,20 +45,21 @@ buildPythonPackage rec {
confluent-kafka confluent-kafka
distributed distributed
graphviz graphviz
networkx pytest
pytest_4
requests requests
]; ];
# Disable test_tcp_async because fails on sandbox build # Disable test_tcp_async because fails on sandbox build
# disable kafka tests
checkPhase = '' checkPhase = ''
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \ pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \
--deselect=streamz/tests/test_sources.py::test_tcp --deselect=streamz/tests/test_sources.py::test_tcp \
--ignore=streamz/tests/test_kafka.py
''; '';
meta = with lib; { meta = with lib; {
description = "Pipelines to manage continuous streams of data"; description = "Pipelines to manage continuous streams of data";
homepage = "https://github.com/mrocklin/streamz"; homepage = "https://github.com/python-streamz/streamz";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
}; };