summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiojobs/default.nix
blob: 20c068080c9cf8ebdd0b70bb10a34152c9f7136f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, aiohttp
, pytestCheckHook
, pytest-aiohttp
, pygments
}:

buildPythonPackage rec {
  pname = "aiojobs";
  version = "0.3.0";
  format = "flit";
  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-9mMdQtxDCPfYg6u9cNTpdvP8w1o7oejq5dSvSUCh4MM=";
  };

  nativeBuildInputs = [
    pygments
  ];

  propagatedBuildInputs = [
    aiohttp
  ];

  checkInputs = [
    pytestCheckHook
    pytest-aiohttp
  ];

  pythonImportsCheck = [ "aiojobs" ];

  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 ];
  };
}