nixpkgs-suyu/pkgs/development/python-modules/aiohttp/default.nix

46 lines
967 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
, pytest
, gunicorn
, pytest-mock
2018-04-04 19:31:03 +02:00
, async_generator
2018-06-23 12:02:20 +02:00
, pytestrunner
, pytest-timeout
}:
buildPythonPackage rec {
pname = "aiohttp";
2018-06-12 18:25:08 +02:00
version = "3.3.2";
src = fetchPypi {
inherit pname version;
2018-06-12 18:25:08 +02:00
sha256 = "f20deec7a3fbaec7b5eb7ad99878427ad2ee4cc16a46732b705e8121cbb3cc12";
};
disabled = pythonOlder "3.5";
2018-06-23 12:02:20 +02:00
checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
++ lib.optional (pythonOlder "3.7") idna-ssl;
2018-06-23 12:02:20 +02:00
# Several test failures. Need to be looked into.
doCheck = false;
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";
license = licenses.asl20;
homepage = https://github.com/aio-libs/aiohttp;
maintainers = with maintainers; [ dotlambda ];
};
}