mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
49 lines
837 B
Nix
49 lines
837 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, aiohttp
|
|
, pytestCheckHook
|
|
, pytest-aiohttp
|
|
, pygments
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiojobs";
|
|
version = "1.0.0";
|
|
format = "flit";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "EQwD0b2B9qFVd/8thKInaio0hpPzvVIjvCN0TcARu2w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pygments
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-aiohttp
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiojobs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Jobs scheduler for managing background task (asyncio)";
|
|
homepage = "https://github.com/aio-libs/aiojobs";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
};
|
|
}
|