nixpkgs/pkgs/development/python-modules/rx/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

32 lines
970 B
Nix

{ lib, fetchPypi, buildPythonPackage, pythonOlder, nose }:
buildPythonPackage rec {
pname = "rx";
version = "3.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
# Use fetchPypi to avoid the updater script to migrate it to `reactivex` which
# is being developed in the same repository
src = fetchPypi {
inherit version;
pname = "Rx";
sha256 = "b657ca2b45aa485da2f7dcfd09fac2e554f7ac51ff3c2f8f2ff962ecd963d91c";
};
nativeCheckInputs = [ 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;
pythonImportsCheck = [ "rx" ];
meta = {
homepage = "https://github.com/ReactiveX/RxPY";
description = "Reactive Extensions for Python";
maintainers = with lib.maintainers; [ thanegill ];
license = lib.licenses.asl20;
};
}