python310Packages.aiomisc: init at 16.2

This commit is contained in:
Fabian Affolter 2022-09-23 01:13:53 +02:00
parent 1ed0f23ecb
commit 4dae2933ba
2 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,88 @@
{ lib
, aiocontextvars
#, aiocarbon
, aiohttp
#, aiohttp-asgi
, async-timeout
, buildPythonPackage
, colorlog
, croniter
, fastapi
, fetchFromGitHub
, logging-journald
, pytestCheckHook
, pythonOlder
, raven
#, raven-aiohttp
, setproctitle
, uvloop
}:
buildPythonPackage rec {
pname = "aiomisc";
version = "16.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aiokitchen";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-wxm7MrFHZ7TrUGw5w7iLWs1olU8ZmJmJ7M/BZ6Nf0fU=";
};
propagatedBuildInputs = [
colorlog
logging-journald
];
checkInputs = [
aiocontextvars
async-timeout
fastapi
pytestCheckHook
raven
setproctitle
] ++ passthru.optional-dependencies.aiohttp
++ passthru.optional-dependencies.cron
++ passthru.optional-dependencies.uvloop;
passthru.optional-dependencies = {
aiohttp = [
aiohttp
];
#asgi = [
# aiohttp-asgi
#];
cron = [
croniter
];
#carbon = [
# aiocarbon
#];
#raven = [
# raven-aiohttp
#];
uvloop = [
uvloop
];
};
pythonImportsCheck = [
"aiomisc"
];
disabledTestPaths = [
# Dependencies are not available at the moment
"tests/test_entrypoint.py"
"tests/test_raven_service.py"
];
meta = with lib; {
description = "Miscellaneous utils for asyncio";
homepage = "https://github.com/aiokitchen/aiomisc";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -374,6 +374,8 @@ in {
aiolyric = callPackage ../development/python-modules/aiolyric { };
aiomisc = callPackage ../development/python-modules/aiomisc { };
aiomodernforms = callPackage ../development/python-modules/aiomodernforms { };
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };