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

67 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, fetchpatch
2019-02-24 15:21:44 +00:00
, tornado
, toolz
, zict
, six
, pytest
2019-02-24 15:21:44 +00:00
, networkx
, distributed
, confluent-kafka
, graphviz
2019-09-27 19:10:17 +01:00
, requests
2019-02-24 15:21:44 +00:00
}:
buildPythonPackage rec {
pname = "streamz";
2019-09-27 19:10:17 +01:00
version = "0.5.2";
2019-02-24 15:21:44 +00:00
src = fetchPypi {
inherit pname version;
2019-09-27 19:10:17 +01:00
sha256 = "127rpdjgkcyjifmkqbhmqfbzlgi32n54rybrdxja610qr906y40c";
2019-02-24 15:21:44 +00:00
};
patches = [
# fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
( fetchpatch {
url = "https://github.com/python-streamz/streamz/commit/f8b7bdb6bcb9dd107677e82e755ff4695bf0c4be.patch";
sha256 = "1b2frp0j369gf55plxk2pigblhsc44m0rm9az01y83cjlcm26x2s";
})
# also, fix networkx rename issue of GiGraph.node -> DiGraph.nodes, remove on next bump
( fetchpatch {
url = "https://github.com/python-streamz/streamz/commit/f7603f4cbea54f1548885881206a3ca9d6e52250.patch";
sha256 = "1125kqiaz6b3cifz0yk1zrkxj5804lfzl4kc58jhqajv8rsrbs45";
})
];
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
graphviz
pytest
2019-09-27 19:10:17 +01:00
requests
];
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 ];
};
}