python3Packages.aiothreads: init at 1.1.1

Module to bridge async and thread

https://github.com/mosquito/aiothreads
This commit is contained in:
Fabian Affolter
2026-08-24 12:32:40 +02:00
parent b96e485d5f
commit 1652f6d6f9
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
hatchling,
nix-update-script,
pyprojectVersionPatchHook,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "aiothreads";
version = "1.1.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "mosquito";
repo = "aiothreads";
tag = finalAttrs.version;
hash = "sha256-dK9aDfrIfoFbqq2mvzysy3xAyE/Qhs6cbTmxGzc72hU=";
};
build-system = [ hatchling ];
nativeBuildInputs = [ pyprojectVersionPatchHook ];
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "aiothreads" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Module to bridge async and thread";
homepage = "https://github.com/mosquito/aiothreads";
changelog = "https://github.com/mosquito/aiothreads/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})

View File

@@ -582,6 +582,8 @@ self: super: with self; {
aiotedee = callPackage ../development/python-modules/aiotedee { };
aiothreads = callPackage ../development/python-modules/aiothreads { };
aiotools = callPackage ../development/python-modules/aiotools { };
aiotractive = callPackage ../development/python-modules/aiotractive { };