python311Packages.python-engineio: add patch for mocking issue
This commit is contained in:
parent
ae66f57ac4
commit
9af21018ce
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue