mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.aiothreads: init at 1.1.1
Module to bridge async and thread https://github.com/mosquito/aiothreads
This commit is contained in:
50
pkgs/development/python-modules/aiothreads/default.nix
Normal file
50
pkgs/development/python-modules/aiothreads/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user