about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-12-11 20:06:12 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2016-12-11 20:07:24 +0100
commitc4104539e0db99e371a6b7f317d931d785c6ace8 (patch)
treeab6366b30ff3cd77e83955514fc8fac3d16628a4 /pkgs/development/python-modules
parent826649ddf459e35e6fa6e57ae333637977f6b235 (diff)
downloadnixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar.gz
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar.bz2
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar.lz
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar.xz
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.tar.zst
nixlib-c4104539e0db99e371a6b7f317d931d785c6ace8.zip
pythonPackages.async_timeout: init at 1.1.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/async_timeout/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/async_timeout/default.nix b/pkgs/development/python-modules/async_timeout/default.nix
new file mode 100644
index 000000000000..d5009e9bccb0
--- /dev/null
+++ b/pkgs/development/python-modules/async_timeout/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, fetchurl
+, buildPythonPackage
+, pytestrunner
+, pythonOlder
+}:
+
+let
+  pname = "async-timeout";
+  version = "1.1.0";
+in buildPythonPackage rec {
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
+    sha256 = "b88bd1fe001b800ec23c7bf27a81b32819e2a56668e9fba5646a7f3618143081";
+  };
+
+  buildInputs = [ pytestrunner ];
+  # 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;
+  };
+}
\ No newline at end of file