py-frozendict: patch up for Python 3.11 (#42192)

* py-frozendict: patch up for Python 3.11

See also Marco-Sulla/python-frozendict#68, rely on a pure Python
implementation when 3.11+ is used.

* mention related Github issue
This commit is contained in:
Matthias Wolf 2024-01-29 15:03:46 +01:00 committed by GitHub
parent e1826f89d4
commit 80e36d47c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,8 +14,15 @@ class PyFrozendict(PythonPackage):
license("LGPL-3.0-only")
version("2.3.10", sha256="aadc83510ce82751a0bb3575231f778bc37cbb373f5f05a52b888e26cbb92f79")
version("2.3.4", sha256="15b4b18346259392b0d27598f240e9390fafbff882137a9c48a1e0104fb17f78")
version("1.2", sha256="774179f22db2ef8a106e9c38d4d1f8503864603db08de2e33be5b778230f6e45")
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")
def setup_build_environment(self, env):
# C extension is not supported for 3.11+. See also
# https://github.com/Marco-Sulla/python-frozendict/issues/68
if self.spec.satisfies("^python@3.11:"):
env.set("FROZENDICT_PURE_PY", "1")