nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.backports-asyncio-runner: init at 1.2.0

detroyejr db76b39d 9551070e

+53
+47
pkgs/development/python-modules/backports-asyncio-runner/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + pytestCheckHook, 5 + fetchFromGitHub, 6 + hatchling, 7 + hatch-fancy-pypi-readme, 8 + }: 9 + 10 + let 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 + }; 19 + in 20 + buildPythonPackage { 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 + }
+6
pkgs/top-level/python-packages.nix
··· 1659 1659 1660 1660 backoff = callPackage ../development/python-modules/backoff { }; 1661 1661 1662 + backports-asyncio-runner = 1663 + if pythonAtLeast "3.11" then 1664 + null 1665 + else 1666 + callPackage ../development/python-modules/backports-asyncio-runner { }; 1667 + 1662 1668 backports-datetime-fromisoformat = 1663 1669 callPackage ../development/python-modules/backports-datetime-fromisoformat 1664 1670 { };