3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aiojobs/default.nix

49 lines
837 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
2020-08-14 12:29:53 +01:00
, aiohttp
, pytestCheckHook
2020-08-14 12:29:53 +01:00
, pytest-aiohttp
, pygments
}:
buildPythonPackage rec {
pname = "aiojobs";
version = "1.0.0";
2020-08-14 12:29:53 +01:00
format = "flit";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
sha256 = "EQwD0b2B9qFVd/8thKInaio0hpPzvVIjvCN0TcARu2w=";
2020-08-14 12:29:53 +01:00
};
nativeBuildInputs = [
pygments
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytestCheckHook
2020-08-14 12:29:53 +01:00
pytest-aiohttp
];
pythonImportsCheck = [
"aiojobs"
];
2020-08-14 12:29:53 +01:00
meta = with lib; {
description = "Jobs scheduler for managing background task (asyncio)";
homepage = "https://github.com/aio-libs/aiojobs";
2020-08-14 12:29:53 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
};
}