56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
|
, confluent-kafka
|
|
, distributed
|
|
, flaky
|
|
, graphviz
|
|
, networkx
|
|
, pytest
|
|
, requests
|
|
, six
|
|
, toolz
|
|
, tornado
|
|
, zict
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "streamz";
|
|
version = "0.5.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0r83z3233pfwjw31bkmdldjqlx533f27iimayadfgcn5jr3xwykq";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
networkx
|
|
tornado
|
|
toolz
|
|
zict
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
confluent-kafka
|
|
distributed
|
|
flaky
|
|
graphviz
|
|
pytest
|
|
requests
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|