Merge pull request #183952 from marsam/revert-python-rx

Revert "python3Packages.rx: 3.2.0 -> 4.0.4"

authored by

Robert Scott and committed by
GitHub
a3fddd46 9da6fb68

+10 -22
+10 -22
pkgs/development/python-modules/rx/default.nix
··· 1 - { lib, fetchFromGitHub, buildPythonPackage 2 - , pythonOlder 3 - , poetry-core 4 - , nose 5 - , typing-extensions 6 - }: 1 + { lib, fetchPypi, buildPythonPackage, pythonOlder, nose }: 7 2 8 3 buildPythonPackage rec { 9 4 pname = "rx"; 10 - version = "4.0.4"; 5 + version = "3.2.0"; 11 6 disabled = pythonOlder "3.6"; 12 - format = "pyproject"; 13 7 14 - # There are no tests on the pypi source 15 - src = fetchFromGitHub { 16 - owner = "ReactiveX"; 17 - repo = "rxpy"; 18 - rev = "refs/tags/v${version}"; 19 - sha256 = "sha256-W1qYNbYV6Roz1GJtP/vpoPD6KigWaaQOWe1R5DZHlUw="; 8 + # Use fetchPypi to avoid the updater script to migrate it to `reactivex` which 9 + # is being developed in the same repository 10 + src = fetchPypi { 11 + inherit version; 12 + pname = "Rx"; 13 + sha256 = "b657ca2b45aa485da2f7dcfd09fac2e554f7ac51ff3c2f8f2ff962ecd963d91c"; 20 14 }; 21 15 22 - nativeBuildInputs = [ 23 - poetry-core 24 - ]; 25 - 26 - propagatedBuildInputs = [ 27 - typing-extensions 28 - ]; 29 - 30 16 checkInputs = [ nose ]; 31 17 32 18 # Some tests are nondeterministic. (`grep sleep -r tests`) 33 19 # test_timeout_schedule_action_cancel: https://hydra.nixos.org/build/74954646 34 20 # test_new_thread_scheduler_timeout: https://hydra.nixos.org/build/74949851 35 21 doCheck = false; 22 + 23 + pythonImportsCheck = [ "rx" ]; 36 24 37 25 meta = { 38 26 homepage = "https://github.com/ReactiveX/RxPY";