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

59 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi
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
};
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 \
--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 ];
};
}