python3Packages.betterproto: fix build failure (#383595)

authored by Peder Bergebakken Sundt and committed by GitHub 06c6b7f8 cdde3c9d

+16 -1
+16 -1
pkgs/development/python-modules/betterproto/default.nix
··· 19 19 grpcio-tools, 20 20 }: 21 21 22 + let 23 + # using a older version of pytest-asyncio only for tests 24 + # https://github.com/pytest-dev/pytest-asyncio/issues/928 25 + pytest-asyncio_23_8 = ( 26 + pytest-asyncio.overridePythonAttrs (old: rec { 27 + version = "0.23.8"; 28 + src = fetchFromGitHub { 29 + inherit (old.src) owner repo; 30 + tag = "v${version}"; 31 + hash = "sha256-kMv0crYuYHi1LF+VlXizZkG87kSL7xzsKq9tP9LgFVY="; 32 + }; 33 + }) 34 + ); 35 + in 36 + 22 37 buildPythonPackage rec { 23 38 pname = "betterproto"; 24 39 version = "2.0.0b6"; ··· 55 70 nativeCheckInputs = [ 56 71 grpcio-tools 57 72 pydantic 58 - pytest-asyncio 73 + pytest-asyncio_23_8 59 74 pytest-mock 60 75 pytest7CheckHook 61 76 tomlkit