841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, confluent-kafka
|
|
, distributed
|
|
, flaky
|
|
, graphviz
|
|
, networkx
|
|
, pytest
|
|
, requests
|
|
, six
|
|
, toolz
|
|
, tornado
|
|
, zict
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamz";
|
|
version = "0.6.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "04446ece273c041506b1642bd3d8380367a8372196be4d6d6d03faafadc590b2";
|
|
};
|
|
|
|
patches = [
|
|
# Fix apply import from dask
|
|
(fetchpatch {
|
|
url = "https://patch-diff.githubusercontent.com/raw/python-streamz/streamz/pull/423.patch";
|
|
sha256 = "sha256-CR+uRvzaFu9WQ633tbvX3gAnudhlVN6VvmxKiR37diw=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
networkx
|
|
tornado
|
|
toolz
|
|
zict
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
confluent-kafka
|
|
distributed
|
|
flaky
|
|
graphviz
|
|
pytest
|
|
requests
|
|
];
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# 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 \
|
|
--deselect=streamz/tests/test_core.py::test_partition_timeout \
|
|
--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 ];
|
|
};
|
|
}
|