2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiocontextvars
|
|
|
|
#, aiocarbon
|
|
|
|
, aiohttp
|
|
|
|
#, aiohttp-asgi
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, colorlog
|
|
|
|
, croniter
|
|
|
|
, fastapi
|
2022-12-28 21:21:41 +00:00
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, logging-journald
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, raven
|
|
|
|
#, raven-aiohttp
|
|
|
|
, setproctitle
|
|
|
|
, uvloop
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomisc";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "16.3.15";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-lHDjsK8ds1ftovY2IAbJwk3jnn4FoDo6f/Nu/MSAhqM=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorlog
|
|
|
|
logging-journald
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
# Upstream stopped tagging with 16.2
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# disabledTestPaths = [
|
|
|
|
# # Dependencies are not available at the moment
|
|
|
|
# "tests/test_entrypoint.py"
|
|
|
|
# "tests/test_raven_service.py"
|
|
|
|
# ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Miscellaneous utils for asyncio";
|
|
|
|
homepage = "https://github.com/aiokitchen/aiomisc";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|