Name: python-holidays Version: 0.79 Release: %autorelease Summary: Generate and work with holidays in Python License: MIT URL: https://github.com/vacanza/holidays Source0: %{url}/archive/v%{version}/holidays-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: A fast, efficient Python library for generating country, province and state specific sets of holidays on the fly. It aims to make determining whether a specific date is a holiday as fast and flexible as possible.} %description %_description %package -n python3-holidays Summary: %{summary} %description -n python3-holidays %_description %prep %autosetup -n holidays-%{version} # remove coverage options from pytest sed -i '/--cov-fail-under=100/ d' pyproject.toml # remove license-files: fails on F42 sed -i '/^license-files/ d' pyproject.toml cat pyproject.toml # sanitize test requirements, unpin sed -i -e '/coverage/ d' \ -e 's/==.*$//' \ -e 's/>=.*$//' \ -e 's/<=.*$//' \ -e 's/<.*$//' \ -e 's/>.*$//' \ -e '/pytest-cov/ d' \ requirements/tests.txt cat requirements/tests.txt %generate_buildrequires %pyproject_buildrequires requirements/tests.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l holidays %check %pyproject_check_import %{python3} scripts/l10n/generate_mo_files.py %pytest -v . %files -n python3-holidays -f %{pyproject_files} %license LICENSE %doc README.md CHANGES.md CONTRIBUTORS %changelog %autochangelog