Files
nixpkgs/pkgs/development/python-modules/aiojobs/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

58 lines
1.3 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pytest-aiohttp,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiojobs";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiojobs";
tag = "v${version}";
hash = "sha256-MgGUmDG0b0V/k+mCeiVRnBxa+ChK3URnGv6P8QP7RzQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ];
optional-dependencies = {
aiohttp = [ aiohttp ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-aiohttp
pytest-cov-stub
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "aiojobs" ];
disabledTests = [
# RuntimeWarning: coroutine 'Scheduler._wait_failed' was never awaited
"test_scheduler_must_be_created_within_running_loop"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Jobs scheduler for managing background task (asyncio)";
homepage = "https://github.com/aio-libs/aiojobs";
changelog = "https://github.com/aio-libs/aiojobs/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ cmcdragonkai ];
};
}