1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 pythonOlder,
6 nose,
7}:
8
9buildPythonPackage rec {
10 pname = "rx";
11 version = "3.2.0";
12 format = "setuptools";
13 disabled = pythonOlder "3.6";
14
15 # Use fetchPypi to avoid the updater script to migrate it to `reactivex` which
16 # is being developed in the same repository
17 src = fetchPypi {
18 inherit version;
19 pname = "Rx";
20 sha256 = "b657ca2b45aa485da2f7dcfd09fac2e554f7ac51ff3c2f8f2ff962ecd963d91c";
21 };
22
23 nativeCheckInputs = [ nose ];
24
25 # Some tests are nondeterministic. (`grep sleep -r tests`)
26 # test_timeout_schedule_action_cancel: https://hydra.nixos.org/build/74954646
27 # test_new_thread_scheduler_timeout: https://hydra.nixos.org/build/74949851
28 doCheck = false;
29
30 pythonImportsCheck = [ "rx" ];
31
32 meta = {
33 homepage = "https://github.com/ReactiveX/RxPY";
34 description = "Reactive Extensions for Python";
35 maintainers = with lib.maintainers; [ thanegill ];
36 license = lib.licenses.asl20;
37 };
38}