From c4104539e0db99e371a6b7f317d931d785c6ace8 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 11 Dec 2016 20:06:12 +0100 Subject: [PATCH] pythonPackages.async_timeout: init at 1.1.0 --- .../python-modules/async_timeout/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/async_timeout/default.nix 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 00000000000..d5009e9bccb --- /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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ba944b66822..071e171dc63 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1210,6 +1210,8 @@ in { }; }; + async-timeout = callPackage ../development/python-modules/async_timeout { }; + asn1ate = buildPythonPackage rec { pname = "asn1ate"; date = "20160810";