2021-06-21 15:26:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-02-24 15:21:44 +00:00
|
|
|
, confluent-kafka
|
2020-08-07 21:07:49 +00:00
|
|
|
, distributed
|
2021-11-09 17:30:13 +00:00
|
|
|
, fetchPypi
|
2020-08-07 21:07:49 +00:00
|
|
|
, flaky
|
2019-02-24 15:21:44 +00:00
|
|
|
, graphviz
|
2020-08-07 21:07:49 +00:00
|
|
|
, networkx
|
2021-11-09 17:30:13 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-09-27 18:10:17 +00:00
|
|
|
, requests
|
2020-08-07 21:07:49 +00:00
|
|
|
, six
|
|
|
|
, toolz
|
|
|
|
, tornado
|
|
|
|
, zict
|
2021-11-02 00:26:33 +00:00
|
|
|
, fetchpatch
|
2019-02-24 15:21:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "streamz";
|
2021-11-09 17:30:13 +00:00
|
|
|
version = "0.6.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-02-24 15:21:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-09 17:30:13 +00:00
|
|
|
sha256 = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8=";
|
2019-02-24 15:21:44 +00:00
|
|
|
};
|
|
|
|
|
2021-11-02 00:26:33 +00:00
|
|
|
patches = [
|
|
|
|
# remove with next bump
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-tests-against-distributed-2021.10.0.patch";
|
|
|
|
url = "https://github.com/python-streamz/streamz/commit/5bd3bc4d305ff40c740bc2550c8491be9162778a.patch";
|
|
|
|
sha256 = "1xzxcbf7yninkyizrwm3ahqk6ij2fmh0454iqjx2n7mmzx3sazx7";
|
|
|
|
includes = ["streamz/tests/test_dask.py"];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-02-24 15:21:44 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-12-16 05:18:31 +00:00
|
|
|
networkx
|
2021-11-09 17:30:13 +00:00
|
|
|
six
|
2019-02-24 15:21:44 +00:00
|
|
|
toolz
|
2021-11-09 17:30:13 +00:00
|
|
|
tornado
|
2019-02-24 15:21:44 +00:00
|
|
|
zict
|
|
|
|
];
|
|
|
|
|
2019-09-27 18:10:17 +00:00
|
|
|
checkInputs = [
|
|
|
|
confluent-kafka
|
|
|
|
distributed
|
2020-08-07 21:07:49 +00:00
|
|
|
flaky
|
2019-09-27 18:10:17 +00:00
|
|
|
graphviz
|
2021-11-09 17:30:13 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2019-09-27 18:10:17 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2021-11-02 00:26:33 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"streamz"
|
|
|
|
];
|
|
|
|
|
2021-11-09 17:30:13 +00:00
|
|
|
disabledTests = [
|
2021-11-02 00:26:33 +00:00
|
|
|
# test_tcp_async fails on sandbox build
|
2021-11-09 17:30:13 +00:00
|
|
|
"test_tcp_async"
|
|
|
|
"test_tcp"
|
2021-11-02 00:26:33 +00:00
|
|
|
"test_partition_timeout"
|
|
|
|
# flaky
|
|
|
|
"test_from_iterable_backpressure"
|
2021-11-09 17:30:13 +00:00
|
|
|
];
|
|
|
|
disabledTestPaths = [
|
2021-11-02 00:26:33 +00:00
|
|
|
# disable kafka tests
|
2021-11-09 17:30:13 +00:00
|
|
|
"streamz/tests/test_kafka.py"
|
|
|
|
];
|
2020-09-20 21:30:29 +00:00
|
|
|
|
2019-02-24 15:21:44 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pipelines to manage continuous streams of data";
|
2019-12-16 05:18:31 +00:00
|
|
|
homepage = "https://github.com/python-streamz/streamz";
|
2019-02-24 15:21:44 +00:00
|
|
|
license = licenses.bsd3;
|
2021-11-09 17:30:13 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-02-24 15:21:44 +00:00
|
|
|
};
|
|
|
|
}
|