mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
98 lines
1.7 KiB
Nix
98 lines
1.7 KiB
Nix
{ lib
|
|
, aiocontextvars
|
|
#, aiocarbon
|
|
, aiohttp
|
|
#, aiohttp-asgi
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, colorlog
|
|
, croniter
|
|
, fastapi
|
|
, fetchPypi
|
|
, logging-journald
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, raven
|
|
#, raven-aiohttp
|
|
, setproctitle
|
|
, setuptools
|
|
, uvloop
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiomisc";
|
|
version = "17.3.23";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-9Df/eGMnXFdv3RUh4LmlPm7STlUcVBw4flfH+bZ6q9Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorlog
|
|
logging-journald
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
# 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"
|
|
# ];
|
|
|
|
meta = with lib; {
|
|
description = "Miscellaneous utils for asyncio";
|
|
homepage = "https://github.com/aiokitchen/aiomisc";
|
|
changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|