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

54 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
2019-01-10 14:11:46 +00:00
, typing-extensions
, pytestrunner
, pytest
, gunicorn
2018-06-23 10:02:20 +00:00
, pytest-timeout
2019-01-10 14:11:46 +00:00
, async_generator
, pytest_xdist
, pytestcov
, pytest-mock
, trustme
, brotlipy
}:
buildPythonPackage rec {
pname = "aiohttp";
2019-01-12 13:56:40 +00:00
version = "3.5.4";
src = fetchPypi {
inherit pname version;
2019-01-12 13:56:40 +00:00
sha256 = "9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf";
};
disabled = pythonOlder "3.5";
2019-01-10 14:11:46 +00:00
checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy
];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
2019-01-10 14:11:46 +00:00
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
2018-06-23 10:02:20 +00:00
2019-08-18 09:35:45 +00:00
checkPhase = ''
pytest -k "not test__get_valid_log_format_exc and not test_access_logger_atoms"
2019-06-15 06:42:51 +00:00
'';
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 ];
};
}