python310Packages.reactivex: init at 4.0.4

main
Fabian Affolter 2 years ago
parent da55381e2a
commit 2e27be3a0e
  1. 54
      pkgs/development/python-modules/reactivex/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "reactivex";
version = "4.0.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ReactiveX";
repo = "RxPY";
rev = "refs/tags/v${version}";
hash = "sha256-W1qYNbYV6Roz1GJtP/vpoPD6KigWaaQOWe1R5DZHlUw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
typing-extensions
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for their GitHub releases
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"'
'';
pythonImportsCheck = [
"reactivex"
];
meta = with lib; {
description = "Library for composing asynchronous and event-based programs";
homepage = "https://github.com/ReactiveX/RxPY";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

@ -9634,6 +9634,8 @@ in {
readthedocs-sphinx-ext = callPackage ../development/python-modules/readthedocs-sphinx-ext { };
reactivex = callPackage ../development/python-modules/reactivex { };
rebulk = callPackage ../development/python-modules/rebulk { };
recaptcha_client = callPackage ../development/python-modules/recaptcha_client { };

Loading…
Cancel
Save