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";
|
2020-11-12 09:05:59 +00:00
|
|
|
version = "0.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "215703456479d24f524cdcd0365006250d4502d242f57e2f5db18e8638bc8694";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|