diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-24 18:44:38 +0100 |
|---|---|---|
| committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-24 18:44:38 +0100 |
| commit | 9af21018cec6a2f29de73b20773acc62e5d9a9df (patch) | |
| tree | 8236d73cfbceae756c2682068c2c13f11dfa3c52 /pkgs/development/python-modules/python-engineio | |
| parent | ae66f57ac4e31ddaec58f5aafe8cd2194cfd67e3 (diff) | |
python311Packages.python-engineio: add patch for mocking issue
Diffstat (limited to 'pkgs/development/python-modules/python-engineio')
| -rw-r--r-- | pkgs/development/python-modules/python-engineio/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-engineio/default.nix b/pkgs/development/python-modules/python-engineio/default.nix index 0337029e248e..f1a079d5896e 100644 --- a/pkgs/development/python-modules/python-engineio/default.nix +++ b/pkgs/development/python-modules/python-engineio/default.nix @@ -4,6 +4,7 @@ , buildPythonPackage , eventlet , fetchFromGitHub +, fetchpatch , iana-etc , libredirect , mock @@ -24,10 +25,19 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "miguelgrinberg"; repo = "python-engineio"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-fymO9WqkYaRsHKCJHQJpySHqZor2t8BfVrfYUfYoJno="; }; + patches = [ + # Address Python 3.11 mocking issue, https://github.com/miguelgrinberg/python-engineio/issues/279 + (fetchpatch { + name = "mocking-issue-py311.patch"; + url = "https://github.com/miguelgrinberg/python-engineio/commit/ac3911356fbe933afa7c11d56141f0e228c01528.patch"; + hash = "sha256-LNMhjX8kqOI3y8XugCHxCPEC6lF83NROfIczXWiLuqY="; + }) + ]; + nativeCheckInputs = [ aiohttp eventlet |
