From nobody Tue Dec 27 23:09:58 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NhVjg1QM8z1Lgpy; Tue, 27 Dec 2022 23:09:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhVjg0rc7z4c5P; Tue, 27 Dec 2022 23:09:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672182599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mdbZksRZSFF8OLejoitvCUjCQmdUZRv05Do8Q5NxBqw=; b=aQaiW92pZYSUllcjgjASwTvGRP45SwLR09zVErpw8Fg8d4tTrVCSYkMUwoTng935WKnAiJ ds3g717NsywoweWpMkc/Mq126M1tvoh113+OVmph9w9AXYcBx6zFEpNZuhkmY8asui9rFO oi/oHRfBt8cbeScX6EMONFJ4E+PYVcM9HurVycw205hrztD8Hf3QxM+nP9tigq0nsPIraL n9P0QE3vWL1twMjIre0dkPzUpU5hAEyHkOxGRjTYSLcWYDRWkez/W+Ef4aaTXDTkc0gZpg Dg5ve9dSeJANxdbKI1viiAno0Yknb4KP49u8pbst5ZZjG1J0gwY0bpNyoAUChQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672182599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mdbZksRZSFF8OLejoitvCUjCQmdUZRv05Do8Q5NxBqw=; b=BxFxLNefnUrJLZ7eka0xXYPIyLhwuU0mKMIVhnmqqGSOhO5sQPF6WCDZVz1Rk1K3mNY+d3 kuN3WzzJBorBhdAHQcmnrW7DA1Lo4XlPGoRdbMzp/1hqf0gIB5PrU7FUV86CG2CAfWvBAp 478TUvjdH7kNGmsh73T/T0J7ppg+FPMW5AD/kA4Zr12HjfuddZcKiIdxc0uT0C3IOZetsX dKPUK28rdSYy+6CydSPI3vRxqjoOBeMaVrOWLS2yKf4gEHwbJr0GIyvdivddpNgVN909KJ DpIKVcziW63/L7h2GxBeGN6j7sh2snGoEn4bIOSxm5ciZ7WL0VRO/w2MKrJYTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672182599; a=rsa-sha256; cv=none; b=TYYqKzXG9ZvcnpFCYDIGTYlw6Kg/wm4dr8XpKJkjkKpRPCpJuIW+oZgfRUlt8NVcNYfoik HQQTFgnPyJx9rx/U7jJy1b3nWQX/Q70jig2TV7bRt6kCAAw+et3MifQlhtmVb3YUcUnBHZ e0FPR2bbMoTXYyiLTaHUaDHZLSHoWb9dNLHmx2fXnTixCoG0yOBNxhCpWJjR7eE95CGQ6W I+w7JoyXqIRoVxkn++2uc6GYU45nIATXr9DSlIFmf1ZH64Hlxd79yBfe330PkqAHB35dZc +AxjkJKiJaJK4rWhMJbVKGcA15uvfh+euYcU+GO/lBOapOvAIpikH9Vlei9O0g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NhVjf720VzSYY; Tue, 27 Dec 2022 23:09:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BRN9wsS098638; Tue, 27 Dec 2022 23:09:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BRN9wN6098637; Tue, 27 Dec 2022 23:09:58 GMT (envelope-from git) Date: Tue, 27 Dec 2022 23:09:58 GMT Message-Id: <202212272309.2BRN9wN6098637@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 5f03f3518e0a - main - arabic/py-hijri-converter: New port: Hijri-Gregorian dates converter based on the Umm al-Qura calendar List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f03f3518e0a9655c57c73d4e42903cc25f18714 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f03f3518e0a9655c57c73d4e42903cc25f18714 commit 5f03f3518e0a9655c57c73d4e42903cc25f18714 Author: Yuri Victorovich AuthorDate: 2022-12-27 21:32:41 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-27 21:32:41 +0000 arabic/py-hijri-converter: New port: Hijri-Gregorian dates converter based on the Umm al-Qura calendar --- arabic/Makefile | 1 + arabic/py-hijri-converter/Makefile | 21 +++++++++++++++++++++ arabic/py-hijri-converter/distinfo | 3 +++ arabic/py-hijri-converter/pkg-descr | 15 +++++++++++++++ 4 files changed, 40 insertions(+) diff --git a/arabic/Makefile b/arabic/Makefile index d7d8182dabf0..139386b22eb6 100644 --- a/arabic/Makefile +++ b/arabic/Makefile @@ -8,5 +8,6 @@ SUBDIR += khotot SUBDIR += libitl SUBDIR += libreoffice + SUBDIR += py-hijri-converter .include diff --git a/arabic/py-hijri-converter/Makefile b/arabic/py-hijri-converter/Makefile new file mode 100644 index 000000000000..f22d420745e7 --- /dev/null +++ b/arabic/py-hijri-converter/Makefile @@ -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 diff --git a/arabic/py-hijri-converter/distinfo b/arabic/py-hijri-converter/distinfo new file mode 100644 index 000000000000..6db01253ce6d --- /dev/null +++ b/arabic/py-hijri-converter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672176341 +SHA256 (hijri-converter-2.2.4.tar.gz) = 9e1d9fa4c220f6867da2abb1a96240675ae974abba951c686a781f4ef6ac218f +SIZE (hijri-converter-2.2.4.tar.gz) = 34899 diff --git a/arabic/py-hijri-converter/pkg-descr b/arabic/py-hijri-converter/pkg-descr new file mode 100644 index 000000000000..a1306bd6d47d --- /dev/null +++ b/arabic/py-hijri-converter/pkg-descr @@ -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.