2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-06-28 23:13:55 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, confluent-kafka
|
2020-08-20 17:08:02 +00:00
|
|
|
, distributed
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchpatch
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchPypi
|
2020-08-20 17:08:02 +00:00
|
|
|
, flaky
|
2020-04-24 23:36:52 +00:00
|
|
|
, graphviz
|
2020-08-20 17:08:02 +00:00
|
|
|
, networkx
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2020-08-20 17:08:02 +00:00
|
|
|
, six
|
|
|
|
, toolz
|
|
|
|
, tornado
|
|
|
|
, zict
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "streamz";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.6.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-VXfWkEwuxInBQVQJV3IQXgGVRkiBmYfUZCBMbjyWNPM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
networkx
|
2021-12-06 16:07:01 +00:00
|
|
|
six
|
2020-04-24 23:36:52 +00:00
|
|
|
toolz
|
2021-12-06 16:07:01 +00:00
|
|
|
tornado
|
2020-04-24 23:36:52 +00:00
|
|
|
zict
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
confluent-kafka
|
|
|
|
distributed
|
2020-08-20 17:08:02 +00:00
|
|
|
flaky
|
2020-04-24 23:36:52 +00:00
|
|
|
graphviz
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"streamz"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
2022-08-12 12:06:08 +00:00
|
|
|
# Error with distutils version: fixture 'cleanup' not found
|
|
|
|
"test_separate_thread_without_time"
|
|
|
|
"test_await_syntax"
|
|
|
|
"test_partition_then_scatter_sync"
|
|
|
|
"test_sync"
|
|
|
|
"test_sync_2"
|
2022-06-26 10:26:21 +00:00
|
|
|
# Test fail in the sandbox
|
2021-12-06 16:07:01 +00:00
|
|
|
"test_tcp_async"
|
|
|
|
"test_tcp"
|
|
|
|
"test_partition_timeout"
|
2022-06-26 10:26:21 +00:00
|
|
|
# Tests are flaky
|
|
|
|
"test_from_iterable"
|
|
|
|
"test_buffer"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
2022-06-26 10:26:21 +00:00
|
|
|
# Disable kafka tests
|
2021-12-06 16:07:01 +00:00
|
|
|
"streamz/tests/test_kafka.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pipelines to manage continuous streams of data";
|
|
|
|
homepage = "https://github.com/python-streamz/streamz";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|