1{ lib 2, buildPythonPackage 3, fetchpatch 4, fetchPypi 5, pythonOlder 6 7# native 8, flit-core 9 10# propagates 11, typing-extensions 12 13# tests 14, unittestCheckHook 15}: 16 17buildPythonPackage rec { 18 pname = "aioitertools"; 19 version = "0.11.0"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.6"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-QsaLjdOmnCv38iM7999LtYtVe8pSUqwC7VGHu8Z9aDE="; 27 }; 28 29 nativeBuildInputs = [ 30 flit-core 31 ]; 32 33 propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ 34 typing-extensions 35 ]; 36 37 checkInputs = [ 38 unittestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "aioitertools" 43 ]; 44 45 meta = with lib; { 46 description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables"; 47 homepage = "https://aioitertools.omnilib.dev/"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ teh ]; 50 }; 51}