arabic/py-hijri-converter: New port: Hijri-Gregorian dates converter based on the Umm al-Qura calendar

This commit is contained in:
Yuri Victorovich 2022-12-27 13:32:41 -08:00
parent 11cd9ddf54
commit 5f03f3518e
4 changed files with 40 additions and 0 deletions

View File

@ -8,5 +8,6 @@
SUBDIR += khotot
SUBDIR += libitl
SUBDIR += libreoffice
SUBDIR += py-hijri-converter
.include <bsd.port.subdir.mk>

View File

@ -0,0 +1,21 @@
PORTNAME= hijri-converter
DISTVERSION= 2.2.4
CATEGORIES= arabic python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Hijri-Gregorian dates converter based on the Umm al-Qura calendar
WWW= https://hijri-converter.readthedocs.io/en/stable/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.6+
USE_PYTHON= distutils autoplist pytest
NO_ARCH= yes
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1672176341
SHA256 (hijri-converter-2.2.4.tar.gz) = 9e1d9fa4c220f6867da2abb1a96240675ae974abba951c686a781f4ef6ac218f
SIZE (hijri-converter-2.2.4.tar.gz) = 34899

View File

@ -0,0 +1,15 @@
hijri-converter is a Python package to convert accurately between Hijri and
Gregorian dates using the Umm al-Qura calendar.
Features:
* Accurate and verified date conversion.
* Optimized code performance compared to similar packages.
* Intuitive, clean, and easy-to-use interface.
* Most of the methods and formats are similar to those of standard library.
* Multilingual representation of weekday names, months, and calendar era
notations.
* Easily extendable to support other natural languages.
* Rich comparison between dates.
* Validation of input dates.
* Works on Python 3.6+ with zero dependencies.
* Thoroughly tested with 100% test coverage.