python3Packages.trio: Propagate exceptiongroup for python<3.11

This commit is contained in:
Martin Weinelt 2023-01-09 01:13:29 +01:00
parent fce67420c4
commit 923d489a22
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -2,6 +2,7 @@
, attrs , attrs
, sortedcontainers , sortedcontainers
, async_generator , async_generator
, exceptiongroup
, idna , idna
, outcome , outcome
, pytestCheckHook , pytestCheckHook
@ -18,11 +19,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "trio"; pname = "trio";
version = "0.22.0"; version = "0.22.0";
format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-zmjxxUAKR7E3xaTecsfJAb1OeiT73r/ptB3oxsBOqs8="; hash = "sha256-zmjxxUAKR7E3xaTecsfJAb1OeiT73r/ptB3oxsBOqs8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -32,6 +34,8 @@ buildPythonPackage rec {
idna idna
outcome outcome
sniffio sniffio
] ++ lib.optionals (pythonOlder "3.11") [
exceptiongroup
]; ];
# tests are failing on Darwin # tests are failing on Darwin