2020-07-06 23:29:01 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, nose }:
|
2018-01-10 18:29:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rx";
|
2021-02-02 04:20:00 +00:00
|
|
|
version = "3.1.1";
|
2020-07-06 23:29:01 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-01-10 18:29:37 +00:00
|
|
|
|
|
|
|
# There are no tests on the pypi source
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ReactiveX";
|
|
|
|
repo = "rxpy";
|
2020-07-06 23:29:01 +01:00
|
|
|
rev = "v${version}";
|
2021-02-02 04:20:00 +00:00
|
|
|
sha256 = "0p0cs67l40npkvwgn5sb18l1b6df1b9fg6rzlqkwk2aa0v3cpvhf";
|
2018-01-10 18:29:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
2018-05-30 03:43:55 +01:00
|
|
|
# Some tests are nondeterministic. (`grep sleep -r tests`)
|
|
|
|
# test_timeout_schedule_action_cancel: https://hydra.nixos.org/build/74954646
|
|
|
|
# test_new_thread_scheduler_timeout: https://hydra.nixos.org/build/74949851
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-01-10 18:29:37 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ReactiveX/RxPY";
|
2018-01-10 18:29:37 +00:00
|
|
|
description = "Reactive Extensions for Python";
|
|
|
|
maintainers = with lib.maintainers; [ thanegill ];
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|