# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2026 Marcel Telka # %patch% 01-no-tox-uv.patch %patch% 02-no-coverage.patch %patch% 03-no-validators.patch %patch% 04-test_console_script.patch %patch% 05-pytest-indirectly.patch %hook-begin% # There is docs/examples/maturin/Cargo.toml file, but it is unused by our build. CARGO_VENDOR='no' %include-2% # This component is required by following bootstrapped components so it must be # bootstrapped too. # - filelock (test bootstrap) # - platformdirs (test bootstrap) # - pyproject_api (test bootstrap) # - virtualenv (test bootstrap) PYTHON_TEST_BOOTSTRAP = yes # python-sbom needs Python >= 3.11 PYTHON_VERSIONS := $(filter-out 3.9,$(PYTHON_VERSIONS)) %include-3% # We have no license-expression packaged yet. COMPONENT_POST_UNPACK_ACTION += $(RM) $(COMPONENT_SRC)/src/python_sbom/_validate/_licenses.py ; # We have no jsonschema-rs, license-expression, and spdx-tools packaged yet. COMPONENT_POST_UNPACK_ACTION += $(RM) $(COMPONENT_SRC)/src/python_sbom/_validate/_schemas.py ; # We have no jsonschema-rs packaged yet. PYTEST_ADDOPTS += --deselect tests/_validate/test_document.py::test_schema_violation PYTEST_ADDOPTS += --ignore tests/_model/test_iri.py # We have no spdx-tools packaged yet. PYTEST_ADDOPTS += --deselect tests/_validate/test_document.py::test_spdx_rendering_must_validate PYTEST_ADDOPTS += --deselect tests/_validate/test_document.py::test_spdx_rendering_must_parse PYTEST_ADDOPTS += --deselect tests/_validate/test_document.py::test_unexpected_error_is_reported PYTEST_ADDOPTS += --ignore tests/_formats/test_spdx.py PYTEST_ADDOPTS += --ignore tests/_validate/test_schemas.py # We have no license-expression packaged yet. PYTEST_ADDOPTS += --ignore tests/_validate/test_licenses.py