Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchurl 3, buildPythonPackage 4, pytestrunner 5, pythonOlder 6}: 7 8let 9 pname = "async-timeout"; 10 version = "1.3.0"; 11in buildPythonPackage rec { 12 name = "${pname}-${version}"; 13 14 src = fetchurl { 15 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 16 sha256 = "f4651f122a9877049930ce31a8422bc202a47937627295fe5e411b2c2083481f"; 17 }; 18 19 buildInputs = [ pytestrunner ]; 20 # Circular dependency on aiohttp 21 doCheck = false; 22 23 disabled = pythonOlder "3.4"; 24 25 meta = { 26 description = "Timeout context manager for asyncio programs"; 27 homepage = https://github.com/aio-libs/async_timeout/; 28 license = lib.licenses.asl20; 29 }; 30}