diff --git a/pkgs/development/python-modules/aioh2/default.nix b/pkgs/development/python-modules/aioh2/default.nix new file mode 100644 index 000000000000..fdeb5fb0082e --- /dev/null +++ b/pkgs/development/python-modules/aioh2/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, isPy3k, fetchPypi, h2, priority }: + +buildPythonPackage rec { + pname = "aioh2"; + version = "0.2.2"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "03i24wzpw0mrnrpck3w6qy83iigwl7n99sdrndqzxfyrc69b99wd"; + }; + + propagatedBuildInputs = [ h2 priority ]; + + doCheck = false; # https://github.com/decentfox/aioh2/issues/17 + + meta = with lib; { + homepage = https://github.com/decentfox/aioh2; + description = "HTTP/2 implementation with hyper-h2 on Python 3 asyncio"; + license = licenses.bsd3; + maintainers = [ maintainers.qyliss ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 98afb6396313..1d5ff1778df0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -702,6 +702,8 @@ in { aiofiles = callPackage ../development/python-modules/aiofiles { }; + aioh2 = callPackage ../development/python-modules/aioh2 { }; + aiohttp = callPackage ../development/python-modules/aiohttp { }; aiohttp-cors = callPackage ../development/python-modules/aiohttp/cors.nix { };