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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
854 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, 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 = "1.1.0";
2020-08-14 11:29:53 +00:00
format = "flit";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-FHdEVt/XXmuTrPAETyod3fHJIK1wg957/+QMAhZG1xk=";
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; {
description = "Jobs scheduler for managing background task (asyncio)";
homepage = "https://github.com/aio-libs/aiojobs";
2020-08-14 11:29:53 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
};
}