%global _empty_manifest_terminate_build 0 Name: python-holidays-ext Version: 0.0.8 Release: 1 Summary: Extended holidays package License: MIT URL: https://github.com/kaixuyang/holidays-extension Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/7c/3d447a4b3acd3a6b9cf65a24182a139aae6ae5781ac6ca23918632ed26be/holidays-ext-0.0.8.tar.gz BuildArch: noarch Requires: python3-numpy Requires: python3-pandas Requires: python3-dateutil Requires: python3-LunarCalendar-ext Requires: python3-convertdate Requires: python3-holidays %description # Holidays Extension This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) library. The holidays are customized and extended. To use this library, simply do ```python from holidays_ext.get_holidays import get_holiday from holidays_ext.get_holidays import get_holiday_df holidays = get_holiday( country_list=["UnitedStates", "Russia"], years=[2019, 2020] ) holidays holidays_df = get_holiday_df( country_list=["UnitedStates", "China", "India"], years=[2018, 2019, 2020, 2021] ) holidays_df ``` %package -n python3-holidays-ext Summary: Extended holidays package Provides: python-holidays-ext BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-holidays-ext # Holidays Extension This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) library. The holidays are customized and extended. To use this library, simply do ```python from holidays_ext.get_holidays import get_holiday from holidays_ext.get_holidays import get_holiday_df holidays = get_holiday( country_list=["UnitedStates", "Russia"], years=[2019, 2020] ) holidays holidays_df = get_holiday_df( country_list=["UnitedStates", "China", "India"], years=[2018, 2019, 2020, 2021] ) holidays_df ``` %package help Summary: Development documents and examples for holidays-ext Provides: python3-holidays-ext-doc %description help # Holidays Extension This repo forks the [Facebook Prophet](https://github.com/facebook/prophet) library, and serve as an extension of the [Python holidays](https://github.com/dr-prodigy/python-holidays) library. The holidays are customized and extended. To use this library, simply do ```python from holidays_ext.get_holidays import get_holiday from holidays_ext.get_holidays import get_holiday_df holidays = get_holiday( country_list=["UnitedStates", "Russia"], years=[2019, 2020] ) holidays holidays_df = get_holiday_df( country_list=["UnitedStates", "China", "India"], years=[2018, 2019, 2020, 2021] ) holidays_df ``` %prep %autosetup -n holidays-ext-0.0.8 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-holidays-ext -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 0.0.8-1 - Package Spec generated