1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, typing-extensions 5, flit-core 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "asyncstdlib"; 12 version = "3.10.9"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "maxfischer2781"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-Wvp2orIGxy10jJOyskY3QMCciH33pPgX4Yd0nHjRjsM="; 22 }; 23 24 nativeBuildInputs = [ 25 flit-core 26 ]; 27 28 propagatedBuildInputs = [ 29 typing-extensions 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "asyncstdlib" 38 ]; 39 40 meta = with lib; { 41 description = "Python library that extends the Python asyncio standard library"; 42 homepage = "https://asyncstdlib.readthedocs.io/"; 43 changelog = "https://github.com/maxfischer2781/asyncstdlib/releases/tag/v${version}"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}