From ddf7ecd3d86343d04a0d4cda3691817d1cd93f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 4 Sep 2025 12:36:53 +0200 Subject: [PATCH] Fix build in ELN [skip changelog] --- python-tox.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python-tox.spec b/python-tox.spec index 022afbc..c3df30c 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -107,6 +107,14 @@ sed -ri -e 's/"(packaging|filelock|platformdirs|psutil|pyproject-api|pytest|pyte -e 's/"(hatchling)>=.*/"\1>=1.13",/g' \ pyproject.toml +%if 0%{?rhel} +# There is no build[virtualenv] packaged in ELN +# https://github.com/fedora-eln/eln/issues/309 +# We flatten the test depndency to build and virtualenv (already listed in runtime deps) +sed -i 's/"build\[virtualenv\]"/"build"/' pyproject.toml +%endif + + %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_buildrequires -r %{?with_tests:-g test}