[packages/python3-hijridate] - new
qboosh
qboosh at pld-linux.org
Tue Jul 15 19:23:26 CEST 2025
commit 812ddfa012f7213b0b73549fd6c2311565edda4c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 15 19:24:58 2025 +0200
- new
python3-hijridate.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
---
diff --git a/python3-hijridate.spec b/python3-hijridate.spec
new file mode 100644
index 0000000..b850b07
--- /dev/null
+++ b/python3-hijridate.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Accurate Hijri-Gregorian dates converter based on Umm al-Qura calendar
+Summary(pl.UTF-8): Dokładny konwerter dat między kalendarzem hidżry a gregoriańskim
+Name: python3-hijridate
+Version: 2.5.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/hijridate/
+Source0: https://files.pythonhosted.org/packages/source/h/hijridate/hijridate-%{version}.tar.gz
+# Source0-md5: ca241c5d8ffc3faa474bf1898b5ae146
+URL: https://pypi.org/project/hijridate/
+BuildRequires: python3-build
+BuildRequires: python3-hatch-fancy-pypi-readme
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HijriDate is a Python package for converting between Hijri and
+Gregorian dates using the Umm al-Qura calendar. The package has been
+thoroughly verified and tested against original references to ensure
+its accuracy and reliability. It has an intuitive design, allows rich
+comparison and basic formatting of Hijri dates, and is optimized for
+performance.
+
+%description -l pl.UTF-8
+HijriDate to pakiet Pythona do konwersji między datami wg hidżry a
+gregoriańskimi, wykorzystujący kalendara Umm al-Qura. Został dokładnie
+zweryfikowany i przetestowany względem pierwotnych źródeł w celu
+zapewnienia dokładności i wiarygodności. Jest zaprojektowany w sposób
+intuicyjny, pozwala na bogate porównywanie i podstawowe formatowanie
+dat wg hidżry, jest zoptymalizowany pod kątem szybkości.
+
+%prep
+%setup -q -n hijridate-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+#%{__python3} -m zipfile -e build-3/*.whl build-3-test
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{py3_sitescriptdir}/hijridate
+%{py3_sitescriptdir}/hijridate-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-hijridate.git/commitdiff/812ddfa012f7213b0b73549fd6c2311565edda4c
More information about the pld-cvs-commit
mailing list