python3Packages.asgiref: fix tests on darwin

our macos sdk version doesn't have SOCK_NONBLOCK
main
Robert Scott 2 years ago committed by Martin Weinelt
parent cce35dad7a
commit 5279d5ebc4
  1. 9
      pkgs/development/python-modules/asgiref/default.nix

@ -6,6 +6,7 @@
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, fetchpatch
}:
buildPythonPackage rec {
@ -22,6 +23,14 @@ buildPythonPackage rec {
sha256 = "sha256-eWDsd8iWK1C/X3t/fKAM1i4hyTM/daGTd8CDSgDTL/U=";
};
patches = [
(fetchpatch {
name = "remove-sock-nonblock-in-tests.patch";
url = "https://github.com/django/asgiref/commit/d451a724c93043b623e83e7f86743bbcd9a05c45.patch";
sha256 = "0whdsn5isln4dqbqqngvsy4yxgaqgpnziz0cndj1zdxim8cdicj7";
})
];
propagatedBuildInputs = [
async-timeout
];

Loading…
Cancel
Save