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

30 lines
850 B
Nix
Raw Normal View History

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-06-19 02:39:13 +01:00
version = "3.2.0";
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-06-19 02:39:13 +01:00
sha256 = "159ln0c721rrdz0mqyl3zvv6qsry7ql7ddlpwpnxs9q15ik15mnj";
2018-01-10 18:29:37 +00:00
};
checkInputs = [ nose ];
# 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 = {
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;
};
}