diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/async-timeout/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/async-timeout/default.nix | 31 |
1 files changed, 31 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..55297bea9cbd --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/async-timeout/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pythonOlder +, typing-extensions +}: + +buildPythonPackage rec { + pname = "async-timeout"; + version = "4.0.2"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-IWPhZA3bUreoyA0KZ6CFh+XSRcycVTp0qEcFa8KXaxU="; + }; + + propagatedBuildInputs = [ + typing-extensions + ]; + + # Circular dependency on aiohttp + doCheck = false; + + meta = { + description = "Timeout context manager for asyncio programs"; + homepage = "https://github.com/aio-libs/async_timeout/"; + license = lib.licenses.asl20; + }; +} |