Package not found: home:smarty12:Python/.collapse-python-numpy_gnu-hpc

File project.diff of Package python-platformdirs

--- python-platformdirs.spec.orig
+++ python-platformdirs.spec
@@ -15,23 +15,34 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
 
 %{?sle15_python_module_pythons}
-Name:           python-platformdirs
+Name:           python-platformdirs%{psuffix}
 Version:        4.2.0
 Release:        0
 Summary:        Module for determining appropriate platform-specific dirs
 License:        MIT
 URL:            https://github.com/platformdirs/platformdirs
 Source:         https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-%{version}.tar.gz
-BuildRequires:  %{python_module appdirs == 1.4.4}
 BuildRequires:  %{python_module base >= 3.7}
-BuildRequires:  %{python_module hatch-vcs}
-BuildRequires:  %{python_module hatchling >= 0.22.0}
 BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module hatchling >= 0.22.0}
+BuildRequires:  %{python_module hatch-vcs}
+%if %{with test}
+BuildRequires:  %{python_module platformdirs == %version}
+BuildRequires:  %{python_module appdirs == 1.4.4}
 BuildRequires:  %{python_module pytest >= 7.4}
 BuildRequires:  %{python_module pytest-cov >= 4.1}
 BuildRequires:  %{python_module pytest-mock >= 3.11.1}
+%endif
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
@@ -50,8 +61,10 @@ A small Python module for determining ap
 %pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%if %{with test}
 %check
 %pytest
+%endif
 
 %files %{python_files}
 %doc README.rst
openSUSE Build Service is sponsored by