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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2019-02-24 15:21:44 +00:00
, confluent-kafka
, distributed
, fetchPypi
, flaky
2019-02-24 15:21:44 +00:00
, graphviz
, networkx
, pytest-asyncio
, pytestCheckHook
, pythonOlder
2019-09-27 18:10:17 +00:00
, requests
, six
, toolz
, tornado
, zict
, fetchpatch
2019-02-24 15:21:44 +00:00
}:
buildPythonPackage rec {
pname = "streamz";
version = "0.6.3";
format = "setuptools";
disabled = pythonOlder "3.6";
2019-02-24 15:21:44 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8=";
2019-02-24 15:21:44 +00:00
};
patches = [
# remove with next bump
(fetchpatch {
name = "fix-tests-against-distributed-2021.10.0.patch";
url = "https://github.com/python-streamz/streamz/commit/5bd3bc4d305ff40c740bc2550c8491be9162778a.patch";
sha256 = "1xzxcbf7yninkyizrwm3ahqk6ij2fmh0454iqjx2n7mmzx3sazx7";
includes = ["streamz/tests/test_dask.py"];
})
];
2019-02-24 15:21:44 +00:00
propagatedBuildInputs = [
networkx
six
2019-02-24 15:21:44 +00:00
toolz
tornado
2019-02-24 15:21:44 +00:00
zict
];
2019-09-27 18:10:17 +00:00
checkInputs = [
confluent-kafka
distributed
flaky
2019-09-27 18:10:17 +00:00
graphviz
pytest-asyncio
pytestCheckHook
2019-09-27 18:10:17 +00:00
requests
];
pythonImportsCheck = [
"streamz"
];
disabledTests = [
# test_tcp_async fails on sandbox build
"test_tcp_async"
"test_tcp"
"test_partition_timeout"
# flaky
"test_from_iterable_backpressure"
];
disabledTestPaths = [
# disable kafka tests
"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 = with maintainers; [ costrouc ];
2019-02-24 15:21:44 +00:00
};
}