nixpkgs/pkgs/development/python-modules/aiojobs/default.nix

44 lines
785 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2020-08-14 11:29:53 +00:00
, fetchPypi
, pythonOlder
2020-08-14 11:29:53 +00:00
, aiohttp
, pytestCheckHook
2020-08-14 11:29:53 +00:00
, pytest-aiohttp
, pygments
}:
buildPythonPackage rec {
pname = "aiojobs";
version = "0.3.0";
2020-08-14 11:29:53 +00:00
format = "flit";
disabled = pythonOlder "3.5";
2020-08-14 11:29:53 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9mMdQtxDCPfYg6u9cNTpdvP8w1o7oejq5dSvSUCh4MM=";
2020-08-14 11:29:53 +00:00
};
nativeBuildInputs = [
pygments
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytestCheckHook
2020-08-14 11:29:53 +00:00
pytest-aiohttp
];
pythonImportsCheck = [ "aiojobs" ];
2020-08-14 11:29:53 +00: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 ];
};
}