python311Packages.python-engineio: add patch for mocking issue

This commit is contained in:
Fabian Affolter 2023-01-24 18:44:38 +01:00
parent ae66f57ac4
commit 9af21018ce

View file

@ -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