forked from pool/python-holidays
- Update to 0.77 * Refactor US holidays: consolidate duplicate self._year triggers (#2726) * Add Cabo Verde holidays (#2654) * Add Cayman Islands holidays (#2706) * Add Central African Republic holidays (#2687) * Add Christmas Island holidays (#2623) * Add Democratic Republic of the Congo holidays (#2702) * Add Faroe Islands holidays (#2719) * Add Gibraltar holidays (#2720) * Add Lebanon holidays (#2700) * Add Mali holidays (#2725) * Add Montserrat holidays (#2714) * Add Niue holidays (#2737) * Add Norfolk Island holidays (#2716) * Add Palestine holidays (#2701) * Add Saint Vincent and the Grenadines holidays (#2608) * Add Tokelau holidays (#2727) * Fix missing StaticHolidays in some countries (#2729) * Improve some variable naming (#2708) * Optimize dict in/get cases (#2707) * Update Georgia holidays (#2735) * Update Peru holidays: add 2023+ holidays (#2730) * Document _add_holiday_* pattern (#2721) OBS-URL: https://build.opensuse.org/request/show/1297095 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=62
71 lines
2.3 KiB
RPMSpec
71 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-holidays
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-holidays
|
|
Version: 0.77
|
|
Release: 0
|
|
Summary: Python library for generating holidays on the fly
|
|
License: MIT
|
|
URL: https://github.com/vacanza/python-holidays
|
|
Source: https://github.com/vacanza/python-holidays/archive/refs/tags/v%{version}.tar.gz#/holidays-%{version}.tar.gz
|
|
BuildRequires: %{python_module convertdate}
|
|
BuildRequires: %{python_module hijri-converter >= 2.2}
|
|
BuildRequires: %{python_module importlib-metadata if %python-base < 3.10}
|
|
BuildRequires: %{python_module korean-lunar-calendar}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module polib}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module testsuite}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-python-dateutil
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library for generating country, province and state specific sets of holidays on the fly.
|
|
It makes determining whether a specific date is a holiday possible.
|
|
|
|
%prep
|
|
%setup -q -n holidays-%{version}
|
|
|
|
%build
|
|
scripts/l10n/generate_mo_files.py
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
sed -i '/"--cov-fail-under=100",/d' pyproject.toml
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES.md README.md
|
|
%{python_sitelib}/holidays
|
|
%{python_sitelib}/holidays-%{version}.dist-info
|
|
|
|
%changelog
|