0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
45 lines
755 B
Nix
45 lines
755 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, aiohttp
|
|
, pytest
|
|
, pytest-aiohttp
|
|
, pygments
|
|
, lib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiojobs";
|
|
version = "0.2.2";
|
|
format = "flit";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "01a0msjh4w58fd7jplmblh0hwgpzwjs5xkgqz3d0p5yv3cykwjwf";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pygments
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytest-aiohttp
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest tests
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|