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

30 lines
850 B
Nix
Raw Normal View History

2020-07-06 22:29:01 +00:00
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, nose }:
2018-01-10 18:29:37 +00:00
buildPythonPackage rec {
pname = "rx";
version = "3.1.1";
2020-07-06 22:29:01 +00: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 22:29:01 +00:00
rev = "v${version}";
sha256 = "0p0cs67l40npkvwgn5sb18l1b6df1b9fg6rzlqkwk2aa0v3cpvhf";
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;
};
}