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

54 lines
958 B
Nix
Raw Normal View History

2019-02-24 16:21:44 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, tornado
, toolz
, zict
, six
2019-09-27 20:10:17 +02:00
, pytest_4
2019-02-24 16:21:44 +01:00
, networkx
, distributed
, confluent-kafka
, graphviz
2019-09-27 20:10:17 +02:00
, requests
2019-02-24 16:21:44 +01:00
}:
buildPythonPackage rec {
pname = "streamz";
2019-09-27 20:10:17 +02:00
version = "0.5.2";
2019-02-24 16:21:44 +01:00
src = fetchPypi {
inherit pname version;
2019-09-27 20:10:17 +02:00
sha256 = "127rpdjgkcyjifmkqbhmqfbzlgi32n54rybrdxja610qr906y40c";
2019-02-24 16:21:44 +01:00
};
propagatedBuildInputs = [
tornado
toolz
zict
six
];
2019-09-27 20:10:17 +02:00
checkInputs = [
confluent-kafka
distributed
graphviz
networkx
pytest_4
requests
];
2019-05-11 22:49:00 +02:00
# Disable test_tcp_async because fails on sandbox build
2019-02-24 16:21:44 +01:00
checkPhase = ''
pytest --deselect=streamz/tests/test_sources.py::test_tcp_async \
--deselect=streamz/tests/test_sources.py::test_tcp
2019-02-24 16:21:44 +01:00
'';
meta = with lib; {
description = "Pipelines to manage continuous streams of data";
2019-09-27 20:10:17 +02:00
homepage = "https://github.com/mrocklin/streamz";
2019-02-24 16:21:44 +01:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}