forked from mirrors/nixpkgs
40 lines
835 B
Nix
40 lines
835 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, attrs
|
|
, chardet
|
|
, multidict
|
|
, async-timeout
|
|
, yarl
|
|
, idna-ssl
|
|
, pytest
|
|
, gunicorn
|
|
, pytest-mock
|
|
, async_generator
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohttp";
|
|
version = "3.1.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "df49fe4452a942e0031174c78917f9926d122d4603bf56bae4591639f2a3dc6a";
|
|
};
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
checkInputs = [ pytest gunicorn pytest-mock async_generator ];
|
|
|
|
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
|
|
++ lib.optional (pythonOlder "3.7") idna-ssl;
|
|
|
|
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 ];
|
|
};
|
|
}
|