about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/async_timeout/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/async_timeout/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/async_timeout/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/async_timeout/default.nix b/nixpkgs/pkgs/development/python-modules/async_timeout/default.nix
new file mode 100644
index 000000000000..aabf30183d56
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/async_timeout/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, fetchPypi
+, buildPythonPackage
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "async-timeout";
+  version = "3.0.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f";
+  };
+
+  # Circular dependency on aiohttp
+  doCheck = false;
+
+  disabled = pythonOlder "3.4";
+
+  meta = {
+    description = "Timeout context manager for asyncio programs";
+    homepage = https://github.com/aio-libs/async_timeout/;
+    license = lib.licenses.asl20;
+  };
+}