about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aiohttp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/aiohttp/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/aiohttp/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/aiohttp/default.nix b/nixpkgs/pkgs/development/python-modules/aiohttp/default.nix
new file mode 100644
index 000000000000..90bd7521ea41
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/aiohttp/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, attrs
+, chardet
+, multidict
+, async-timeout
+, yarl
+, idna-ssl
+, typing-extensions
+, pytestrunner
+, pytest
+, gunicorn
+, pytest-timeout
+, async_generator
+, pytest_xdist
+, pytestcov
+, pytest-mock
+, trustme
+, brotlipy
+}:
+
+buildPythonPackage rec {
+  pname = "aiohttp";
+  version = "3.5.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "9c4c83f4fa1938377da32bc2d59379025ceeee8e24b89f72fcbccd8ca22dc9bf";
+  };
+
+  disabled = pythonOlder "3.5";
+
+  checkInputs = [
+    pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
+    pytest-mock pytestcov trustme brotlipy
+  ];
+
+  propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
+    ++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
+
+  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 ];
+  };
+}