Unverified Commit fda2d80b authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.grpclib: replace async-timeout with asyncio.timeout (#453660)

parents 32c1e98a d0c13bca
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
{
  lib,
  async-timeout,
  buildPythonPackage,
  certifi,
  faker,
  fetchFromGitHub,
  fetchpatch,
  googleapis-common-protos,
  h2,
  multidict,
@@ -28,6 +28,15 @@ buildPythonPackage rec {
    hash = "sha256-Z+DMwGMUxNTQ7ABd4q/FgMHEZ/NCOtst+6QfQJm3jVU=";
  };

  patches = [
    # https://github.com/vmagamedov/grpclib/pull/209
    (fetchpatch {
      name = "replace-async-timeout-with-asyncio-timeout-patch";
      url = "https://github.com/vmagamedov/grpclib/commit/36b23ce3ca3f1742e39b50f939d13cd08b4f28ac.patch";
      hash = "sha256-3ztLBOFpTK8CFIp8a6suhWXY5kIBCBRWBX/oAyYU4yI=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
@@ -38,7 +47,6 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio_0
    async-timeout
    faker
    googleapis-common-protos
    certifi