nixpkgs/pkgs/development/python-modules/aiohttp/default.nix
2017-12-30 17:06:31 +01:00

36 lines
No EOL
746 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, chardet
, multidict
, async-timeout
, yarl
, pytest
, gunicorn
, pytest-raisesregexp
}:
buildPythonPackage rec {
pname = "aiohttp";
version = "2.3.7";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "fe294df38e9c67374263d783a7a29c79372030f5962bd5734fa51c6f4bbfee3b";
};
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/;
};
}