Loading pkgs/development/python-modules/backports-asyncio-runner/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, pytestCheckHook, fetchFromGitHub, hatchling, hatch-fancy-pypi-readme, }: let pname = "backports-asyncio-runner"; version = "1.2.0"; src = fetchFromGitHub { owner = "samypr100"; repo = "backports.asyncio.runner"; tag = "v${version}"; hash = "sha256-F8x7MZgu0VItH7kBke7C7+ZBoM6Iyj8xOeQ2t56ff3k="; }; in buildPythonPackage { inherit pname version src; pyproject = true; build-system = [ hatch-fancy-pypi-readme hatchling ]; pythonImportsCheck = [ "backports.asyncio.runner" ]; nativeCheckInputs = [ pytestCheckHook ]; # These tests depend on the test.test_asyncio module in cpython which is # removed at build time. disabledTestPaths = [ "tests/test_tasks_py38.py" "tests/test_tasks_py39.py" "tests/test_tasks_py310.py" ]; meta = { changelog = "https://github.com/samypr100/backports.asyncio.runner/releases/tag/${src.tag}"; description = "Backport of Python 3.11 asyncio.Runner"; homepage = "https://github.com/samypr100/backports.asyncio.runner"; license = lib.licenses.psfl; maintainers = with lib.maintainers; [ detroyejr ]; }; } pkgs/development/python-modules/pytest-asyncio/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -3,8 +3,10 @@ buildPythonPackage, callPackage, fetchFromGitHub, pythonOlder, pytest, setuptools-scm, backports-asyncio-runner, }: buildPythonPackage rec { Loading @@ -27,6 +29,9 @@ buildPythonPackage rec { build-system = [ setuptools-scm ]; buildInputs = [ pytest ]; dependencies = lib.optionals (pythonOlder "3.11") [ backports-asyncio-runner ]; postInstall = '' mkdir $testout Loading pkgs/top-level/python-packages.nix +6 −0 Original line number Diff line number Diff line Loading @@ -1659,6 +1659,12 @@ self: super: with self; { backoff = callPackage ../development/python-modules/backoff { }; backports-asyncio-runner = if pythonAtLeast "3.11" then null else callPackage ../development/python-modules/backports-asyncio-runner { }; backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { }; Loading Loading
pkgs/development/python-modules/backports-asyncio-runner/default.nix 0 → 100644 +47 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, pytestCheckHook, fetchFromGitHub, hatchling, hatch-fancy-pypi-readme, }: let pname = "backports-asyncio-runner"; version = "1.2.0"; src = fetchFromGitHub { owner = "samypr100"; repo = "backports.asyncio.runner"; tag = "v${version}"; hash = "sha256-F8x7MZgu0VItH7kBke7C7+ZBoM6Iyj8xOeQ2t56ff3k="; }; in buildPythonPackage { inherit pname version src; pyproject = true; build-system = [ hatch-fancy-pypi-readme hatchling ]; pythonImportsCheck = [ "backports.asyncio.runner" ]; nativeCheckInputs = [ pytestCheckHook ]; # These tests depend on the test.test_asyncio module in cpython which is # removed at build time. disabledTestPaths = [ "tests/test_tasks_py38.py" "tests/test_tasks_py39.py" "tests/test_tasks_py310.py" ]; meta = { changelog = "https://github.com/samypr100/backports.asyncio.runner/releases/tag/${src.tag}"; description = "Backport of Python 3.11 asyncio.Runner"; homepage = "https://github.com/samypr100/backports.asyncio.runner"; license = lib.licenses.psfl; maintainers = with lib.maintainers; [ detroyejr ]; }; }
pkgs/development/python-modules/pytest-asyncio/default.nix +5 −0 Original line number Diff line number Diff line Loading @@ -3,8 +3,10 @@ buildPythonPackage, callPackage, fetchFromGitHub, pythonOlder, pytest, setuptools-scm, backports-asyncio-runner, }: buildPythonPackage rec { Loading @@ -27,6 +29,9 @@ buildPythonPackage rec { build-system = [ setuptools-scm ]; buildInputs = [ pytest ]; dependencies = lib.optionals (pythonOlder "3.11") [ backports-asyncio-runner ]; postInstall = '' mkdir $testout Loading
pkgs/top-level/python-packages.nix +6 −0 Original line number Diff line number Diff line Loading @@ -1659,6 +1659,12 @@ self: super: with self; { backoff = callPackage ../development/python-modules/backoff { }; backports-asyncio-runner = if pythonAtLeast "3.11" then null else callPackage ../development/python-modules/backports-asyncio-runner { }; backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { }; Loading