2021-02-17 17:02:09 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, confluent-kafka
|
2020-08-20 17:08:02 +00:00
|
|
|
, distributed
|
|
|
|
, flaky
|
2020-04-24 23:36:52 +00:00
|
|
|
, graphviz
|
2020-08-20 17:08:02 +00:00
|
|
|
, networkx
|
|
|
|
, pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2020-08-20 17:08:02 +00:00
|
|
|
, six
|
|
|
|
, toolz
|
|
|
|
, tornado
|
|
|
|
, zict
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "streamz";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "04446ece273c041506b1642bd3d8380367a8372196be4d6d6d03faafadc590b2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
networkx
|
|
|
|
tornado
|
|
|
|
toolz
|
|
|
|
zict
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
confluent-kafka
|
|
|
|
distributed
|
2020-08-20 17:08:02 +00:00
|
|
|
flaky
|
2020-04-24 23:36:52 +00:00
|
|
|
graphviz
|
|
|
|
pytest
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Disable test_tcp_async because fails on sandbox build
|
|
|
|
# disable kafka tests
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \
|
|
|
|
--deselect=streamz/tests/test_sources.py::test_tcp \
|
|
|
|
--ignore=streamz/tests/test_kafka.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pipelines to manage continuous streams of data";
|
|
|
|
homepage = "https://github.com/python-streamz/streamz";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|