forked from pool/python-holidays
- update to version 0.10.5.2 * Dropped support for Python 2 (dr-p) * Removed convertdate<=2.2.0 constraint (dr-p) * Travis CI integration review (dr-p) * Support for Mozambique (jusce17) * Angola fixes (jusce17) * Portugal localized holidays (jusce17) * Disable year expansion on name search #411 (giladmaya) * Israel fixes (new convertdate version) #407 (giladmaya) * Ireland fixes (ISO-2 code, partial split from UK) #417 (javicalle) * Honduras fix (ISO-2 code) #405 (dr-p, agorajek) - had to disable lag-boamer support due lack of official resource for it via disable-lag-baomer.patch - update to version 0.10.4 * Dropped support for Python 3.5 * Support for Djibouti (Abdisamade) * Support for United Arab Emirates (marcomasulli, mborsetti) * Support for Chile (mborsetti, dr-p) * Support for Angola (jusce17, pietervdw115, dr-p) * Support for Malawi (pietervdw115) * Support for Bangladesh (dr-p, tasnimislam) * Korea fixes (MYUNGJE, dr-p, hiddentrap) * Australia 2020 fix (bencollerson, trauty-is-me) * Croatia fixes and updates (jangrg, mborsetti, dr-p) * United States fixes (raffg, bgmiles, dr-p) * UK fixes/improvements (dr-p, richard-kunert, emreay-) * Russia fixes (tserekh) * Ireland fixes (chiuczek) * Spain observed holidays fix (sermayoral) OBS-URL: https://build.opensuse.org/request/show/870207 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-holidays?expand=0&rev=16
74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-holidays
|
|
#
|
|
# Copyright (c) 2020 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-holidays
|
|
Version: 0.10.5.2
|
|
Release: 0
|
|
Summary: Python library for generating holidays on the fly
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/dr-prodigy/python-holidays
|
|
Source: https://files.pythonhosted.org/packages/source/h/holidays/holidays-%{version}.tar.gz
|
|
Patch1: disable-flake.patch
|
|
# searched for 15 minutes and did not found it anywhere, sorry
|
|
Patch2: disable-lag-baomer.patch
|
|
BuildRequires: %{python_module convertdate}
|
|
BuildRequires: %{python_module hijri-converter}
|
|
BuildRequires: %{python_module korean-lunar-calendar}
|
|
#BuildRequires: %{python_module lag_baomer}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-convertdate
|
|
Requires: python-hijri-converter
|
|
Requires: python-korean-lunar-calendar
|
|
#Requires: python-lag_baomer
|
|
Requires: python-python-dateutil
|
|
Requires: python-six
|
|
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}
|
|
%patch1 -p0
|
|
%patch2 -p0
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_expand $python tests.py
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|