2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, chardet
|
|
|
|
, multidict
|
|
|
|
, async-timeout
|
|
|
|
, yarl
|
|
|
|
, pytest
|
|
|
|
, gunicorn
|
|
|
|
, pytest-raisesregexp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp";
|
2017-11-24 20:36:20 +01:00
|
|
|
version = "2.3.3";
|
2017-09-05 11:16:41 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-11-24 20:36:20 +01:00
|
|
|
sha256 = "0a2e33e90560dacb819b095b9d9611597925d75d1b93dd9490055d3826d98a82";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
doCheck = false; # Too many tests fail.
|
|
|
|
|
|
|
|
checkInputs = [ pytest gunicorn pytest-raisesregexp ];
|
|
|
|
propagatedBuildInputs = [ async-timeout chardet multidict yarl ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Http client/server for asyncio";
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
homepage = https://github.com/KeepSafe/aiohttp/;
|
|
|
|
};
|
|
|
|
}
|