Files
nixpkgs/pkgs/development/python-modules/aiomisc/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

84 lines
1.6 KiB
Nix

{
lib,
stdenv,
aiocontextvars,
aiohttp,
async-timeout,
buildPythonPackage,
colorlog,
croniter,
fastapi,
fetchPypi,
logging-journald,
poetry-core,
pytestCheckHook,
pythonOlder,
raven,
rich,
setproctitle,
typing-extensions,
uvloop,
}:
buildPythonPackage rec {
pname = "aiomisc";
version = "17.9.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-oSwMhomcPIN2JYterJuBUcmJtUx3rayADH1ugah+pI8=";
};
build-system = [ poetry-core ];
dependencies = [
colorlog
]
++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]
++ lib.optionals stdenv.hostPlatform.isLinux [ logging-journald ];
nativeCheckInputs = [
aiocontextvars
async-timeout
fastapi
pytestCheckHook
setproctitle
]
++ lib.flatten (builtins.attrValues optional-dependencies);
optional-dependencies = {
aiohttp = [ aiohttp ];
#asgi = [ aiohttp-asgi ];
cron = [ croniter ];
#carbon = [ aiocarbon ];
raven = [
aiohttp
raven
];
rich = [ rich ];
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 ];
};
}