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";
2020-07-06 23:29:01 +01:00
version = "3.1.0";
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}";
sha256 = "0rcwa8001il9p7s096b9gc5yld8cyxvrsmwh1gpc9b87j172z6ax";
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;
};
}