1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonAtLeast, 6 pythonOlder, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "async-generator"; 12 version = "1.10"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchPypi { 18 pname = "async_generator"; 19 inherit version; 20 hash = "sha256-brs9EGwSkgqq5CzLb3h+9e79zdFm6j1ij6hHar5xIUQ="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_aclose_on_unstarted_generator" ]; 26 27 pythonImportsCheck = [ "async_generator" ]; 28 29 meta = with lib; { 30 description = "Async generators and context managers for Python 3.5+"; 31 homepage = "https://github.com/python-trio/async_generator"; 32 license = with licenses; [ 33 mit 34 asl20 35 ]; 36 maintainers = with maintainers; [ dotlambda ]; 37 }; 38}