1{ 2 lib, 3 buildPythonPackage, 4 pytestCheckHook, 5 fetchFromGitHub, 6 hatchling, 7 hatch-fancy-pypi-readme, 8}: 9 10let 11 pname = "backports-asyncio-runner"; 12 version = "1.2.0"; 13 src = fetchFromGitHub { 14 owner = "samypr100"; 15 repo = "backports.asyncio.runner"; 16 tag = "v${version}"; 17 hash = "sha256-F8x7MZgu0VItH7kBke7C7+ZBoM6Iyj8xOeQ2t56ff3k="; 18 }; 19in 20buildPythonPackage { 21 inherit pname version src; 22 pyproject = true; 23 24 build-system = [ 25 hatch-fancy-pypi-readme 26 hatchling 27 ]; 28 29 pythonImportsCheck = [ "backports.asyncio.runner" ]; 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 # These tests depend on the test.test_asyncio module in cpython which is 33 # removed at build time. 34 disabledTestPaths = [ 35 "tests/test_tasks_py38.py" 36 "tests/test_tasks_py39.py" 37 "tests/test_tasks_py310.py" 38 ]; 39 40 meta = { 41 changelog = "https://github.com/samypr100/backports.asyncio.runner/releases/tag/${src.tag}"; 42 description = "Backport of Python 3.11 asyncio.Runner"; 43 homepage = "https://github.com/samypr100/backports.asyncio.runner"; 44 license = lib.licenses.psfl; 45 maintainers = with lib.maintainers; [ detroyejr ]; 46 }; 47}