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