about summary refs log tree commit diff
path: root/pkgs/development/python-modules/async_timeout/default.nix
blob: 94c2379b0e15c3fbad4cf012e8af60bed082f907 (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
{ lib
, fetchurl
, buildPythonPackage
, pytestrunner
, pythonOlder
}:

let
  pname = "async-timeout";
  version = "1.3.0";
in buildPythonPackage rec {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
    sha256 = "f4651f122a9877049930ce31a8422bc202a47937627295fe5e411b2c2083481f";
  };

  buildInputs = [ pytestrunner ];
  # Circular dependency on aiohttp
  doCheck = false;

  disabled = pythonOlder "3.4";

  meta = {
    description = "Timeout context manager for asyncio programs";
    homepage = https://github.com/aio-libs/async_timeout/;
    license = lib.licenses.asl20;
  };
}