Package Details: python-tzfpy 1.1.0-1

Git Clone URL: https://aur.archlinux.org/python-tzfpy.git (read-only, click to copy)
Package Base: python-tzfpy
Description: Probably the fastest Python package to convert longitude/latitude to timezone name
Upstream URL: https://github.com/ringsaturn/tzfpy
Licenses: MIT
Submitter: Nahouhak
Maintainer: Nahouhak
Last Packager: Nahouhak
Votes: 0
Popularity: 0.000000
First Submitted: 2025-09-23 20:02 (UTC)
Last Updated: 2026-01-11 18:04 (UTC)

Latest Comments

iyanmv commented on 2026-01-02 11:54 (UTC)

License is wrong, and it's better not to use MD5 as hash function to check integrity of files anymore. Here is a full patch with the changes I'd make to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 8b9f106..277bbdc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,24 @@
 # Maintainer: Cyril <cyrwae[at]hotmail[dot]com>
 pkgname=python-tzfpy
 _name=${pkgname#python-}
-pkgver=1.0.0
+pkgver=1.1.0
 pkgrel=1
 pkgdesc="Probably the fastest Python package to convert longitude/latitude to timezone name"
 arch=('x86_64')
-url="https://pypi.org/project/tzfpy/"
-license=('APACHE')
-groups=()
-depends=()
-makedepends=(python-build python-installer python-wheel maturin)
-optdepends=()
-provides=('python-tzfpy')
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-noextract=()
-md5sums=('c835e14042c7b2681830303f55367d28')
+url="https://github.com/ringsaturn/tzfpy"
+license=(MIT)
+depends=(python)
+makedepends=(
+    python-build
+    python-installer
+    python-maturin
+)
+optdepends=(
+    python-pytz
+    python-tzdata
+)
+source=($_name-$pkgver.tar.gz::https://github.com/ringsaturn/tzfpy/archive/refs/tags/v$pkgver.tar.gz)
+sha256sum=()

 build() {
     cd "${_name}-${pkgver}"
@@ -30,4 +28,6 @@ build() {
 package() {
     cd "${_name}-${pkgver}"
     python -m installer --destdir="$pkgdir" dist/*.whl
+    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
+sha256sums=('1fa08649e2ce4f74fc937adc548c6da564960045f848d4ed04f3009e5fd2f0e1')

If you have some extra time you could also implement the check() function running the unit tests from upstream.

iyanmv commented on 2026-01-02 11:45 (UTC) (edited on 2026-01-02 11:50 (UTC) by iyanmv)

Hello! This PKGBUILD as it is fails to build in a clean chroot env. The reason is that in makedepends you should included python-maturin instead of just maturin. In addition, I think you should add python-pytz and python-tzdata to optdepends.