1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-asyncio 5, pytestCheckHook 6, pythonOlder 7, typing-extensions 8}: 9 10buildPythonPackage rec { 11 pname = "aiostream"; 12 version = "0.5.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "vxgmichel"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-g2W2TtCh2ANPjeTdASVgEu+qKfz/Ugh1rDWJcFvOJpI="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace " --cov aiostream --cov-report html --cov-report term" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 typing-extensions 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ 39 "aiostream" 40 ]; 41 42 meta = with lib; { 43 description = "Generator-based operators for asynchronous iteration"; 44 homepage = "https://aiostream.readthedocs.io"; 45 changelog = "https://github.com/vxgmichel/aiostream/releases/tag/v${version}"; 46 license = licenses.gpl3Only; 47 maintainers = with maintainers; [ rmcgibbo ]; 48 }; 49}