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

39 lines
801 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
, pytest
, gunicorn
, pytest-mock
}:
buildPythonPackage rec {
pname = "aiohttp";
2018-03-14 18:44:39 +01:00
version = "3.0.9";
src = fetchPypi {
inherit pname version;
2018-03-14 18:44:39 +01:00
sha256 = "281a9fa56b5ce587a2147ec285d18a224942f7e020581afa6cc44d7caecf937b";
};
disabled = pythonOlder "3.5";
checkInputs = [ pytest gunicorn pytest-mock ];
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 ];
};
}