@@ -1,11 +1,9 @@
1−{ lib
2−, buildPythonPackage
3−, fetchPypi
1+{ lib, buildPythonPackage, fetchPypi, fetchpatch
42, tornado
53, toolz
64, zict
75, six
8−, pytest_4
6+, pytest
97, networkx
108, distributed
119, confluent-kafka
@@ -22,7 +20,21 @@ buildPythonPackage rec {
2220 sha256 = "127rpdjgkcyjifmkqbhmqfbzlgi32n54rybrdxja610qr906y40c";
2321 };
2422
23+ patches = [
24+ # fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
25+ ( fetchpatch {
26+ url = "https://github.com/python-streamz/streamz/commit/f8b7bdb6bcb9dd107677e82e755ff4695bf0c4be.patch";
27+ sha256 = "1b2frp0j369gf55plxk2pigblhsc44m0rm9az01y83cjlcm26x2s";
28+ })
29+ # also, fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
30+ ( fetchpatch {
31+ url = "https://github.com/python-streamz/streamz/commit/f7603f4cbea54f1548885881206a3ca9d6e52250.patch";
32+ sha256 = "1125kqiaz6b3cifz0yk1zrkxj5804lfzl4kc58jhqajv8rsrbs45";
33+ })
34+ ];
35+
2536 propagatedBuildInputs = [
37+ networkx
2638 tornado
2739 toolz
2840 zict
@@ -33,20 +45,21 @@ buildPythonPackage rec {
3345 confluent-kafka
3446 distributed
3547 graphviz
36− networkx
37− pytest_4
48+ pytest
3849 requests
3950 ];
4051
4152 # Disable test_tcp_async because fails on sandbox build
53+ # disable kafka tests
4254 checkPhase = ''
4355 pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \
44− --deselect=streamz/tests/test_sources.py::test_tcp
56+ --deselect=streamz/tests/test_sources.py::test_tcp \
57+ --ignore=streamz/tests/test_kafka.py
4558 '';
4659
4760 meta = with lib; {
4861 description = "Pipelines to manage continuous streams of data";
49− homepage = "https://github.com/mrocklin/streamz";
62+ homepage = "https://github.com/python-streamz/streamz";
5063 license = licenses.bsd3;
5164 maintainers = [ maintainers.costrouc ];
5265 };