at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytestCheckHook, 8 pythonOlder, 9 typing-extensions, 10}: 11 12buildPythonPackage rec { 13 pname = "reactivex"; 14 version = "4.0.4"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "ReactiveX"; 21 repo = "RxPY"; 22 tag = "v${version}"; 23 hash = "sha256-W1qYNbYV6Roz1GJtP/vpoPD6KigWaaQOWe1R5DZHlUw="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ typing-extensions ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 # Upstream doesn't set a version for their GitHub releases 37 substituteInPlace pyproject.toml \ 38 --replace 'version = "0.0.0"' 'version = "${version}"' 39 ''; 40 41 pythonImportsCheck = [ "reactivex" ]; 42 43 meta = with lib; { 44 description = "Library for composing asynchronous and event-based programs"; 45 homepage = "https://github.com/ReactiveX/RxPY"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}