2021-07-11 16:51:49 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-08-14 12:29:53 +01:00
|
|
|
, fetchPypi
|
2021-07-11 16:51:49 +01:00
|
|
|
, pythonOlder
|
2020-08-14 12:29:53 +01:00
|
|
|
, aiohttp
|
2021-07-11 16:51:49 +01:00
|
|
|
, pytestCheckHook
|
2020-08-14 12:29:53 +01:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pygments
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiojobs";
|
2021-07-11 16:51:49 +01:00
|
|
|
version = "0.3.0";
|
2020-08-14 12:29:53 +01:00
|
|
|
format = "flit";
|
2021-07-11 16:51:49 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-08-14 12:29:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-11 16:51:49 +01:00
|
|
|
sha256 = "sha256-9mMdQtxDCPfYg6u9cNTpdvP8w1o7oejq5dSvSUCh4MM=";
|
2020-08-14 12:29:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-07-11 16:51:49 +01:00
|
|
|
pytestCheckHook
|
2020-08-14 12:29:53 +01:00
|
|
|
pytest-aiohttp
|
|
|
|
];
|
|
|
|
|
2021-07-11 16:51:49 +01:00
|
|
|
pythonImportsCheck = [ "aiojobs" ];
|
2020-08-14 12:29:53 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/aio-libs/aiojobs";
|
|
|
|
description = "Jobs scheduler for managing background task (asyncio)";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
|
|
};
|
|
|
|
}
|