nixpkgs/pkgs/development/python-modules/streamz/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
2019-02-24 15:21:44 +00:00
, confluent-kafka
, distributed
, flaky
2019-02-24 15:21:44 +00:00
, graphviz
, networkx
, pytest
2019-09-27 19:10:17 +01:00
, requests
, six
, toolz
, tornado
, zict
, pythonOlder
2019-02-24 15:21:44 +00:00
}:
buildPythonPackage rec {
pname = "streamz";
version = "0.6.2";
2019-02-24 15:21:44 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "04446ece273c041506b1642bd3d8380367a8372196be4d6d6d03faafadc590b2";
2019-02-24 15:21:44 +00:00
};
patches = [
# Fix apply import from dask
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/python-streamz/streamz/pull/423.patch";
sha256 = "sha256-CR+uRvzaFu9WQ633tbvX3gAnudhlVN6VvmxKiR37diw=";
})
];
2019-02-24 15:21:44 +00:00
propagatedBuildInputs = [
networkx
2019-02-24 15:21:44 +00:00
tornado
toolz
zict
six
];
2019-09-27 19:10:17 +01:00
checkInputs = [
confluent-kafka
distributed
flaky
2019-09-27 19:10:17 +01:00
graphviz
pytest
2019-09-27 19:10:17 +01:00
requests
];
disabled = pythonOlder "3.6";
2019-05-11 21:49:00 +01:00
# Disable test_tcp_async because fails on sandbox build
# disable kafka tests
2019-02-24 15:21:44 +00:00
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
2019-02-24 15:21:44 +00:00
'';
meta = with lib; {
description = "Pipelines to manage continuous streams of data";
homepage = "https://github.com/python-streamz/streamz";
2019-02-24 15:21:44 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}