Package Details: python-py4j 0.10.9.7-3

Git Clone URL: https://aur.archlinux.org/python-py4j.git (read-only, click to copy)
Package Base: python-py4j
Description: Enables Python programs to dynamically access arbitrary Java objects
Upstream URL: https://www.py4j.org
Licenses: BSD
Submitter: isbest
Maintainer: isbest
Last Packager: louiswpf
Votes: 3
Popularity: 0.000032
First Submitted: 2022-04-11 17:10 (UTC)
Last Updated: 2022-09-04 11:32 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

louiswpf commented on 2022-08-30 06:35 (UTC)

@isbest Could you please take a look at previous comments?

a.kudelin commented on 2022-07-30 15:40 (UTC)

@isbest, could you please apply the patch from below?

louiswpf commented on 2022-05-26 07:12 (UTC)

@isbest I've made some changes. Please take a look.

From 670e715aee6dc517bb5c3066d79c4d004c569b7d Mon Sep 17 00:00:00 2001
From: Wang Bing-hua <louiswpf@gmail.com>
Date: Thu, 26 May 2022 14:32:18 +0800
Subject: [PATCH] updpkg: python-py4j 0.10.9.5-2

* Correct url, license and depends.
* Always add curly braces around shell variables.
* Fix the indentation.
* Remove unneeded hacks in package().
* Install the license file since py4j is licensed under BSD.
  (https://wiki.archlinux.org/title/PKGBUILD#license)
---
 .SRCINFO |  9 +++++----
 PKGBUILD | 24 +++++++++++-------------
 2 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index de27a26..21beb70 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
 pkgbase = python-py4j
    pkgdesc = Enables Python programs to dynamically access arbitrary Java objects
    pkgver = 0.10.9.5
-   pkgrel = 1
-   url = https://pypi.org/project/pysparkpy4j
+   pkgrel = 2
+   url = https://www.py4j.org
    arch = any
-   license = GPL2
+   license = BSD
    makedepends = python-setuptools
-   depends = python-future
+   depends = java-runtime
+   depends = python
    source = https://pypi.org/packages/source/p/py4j/py4j-0.10.9.5.tar.gz
    sha256sums = 276a4a3c5a2154df1860ef3303a927460e02e97b047dc0a47c1c3fb8cce34db6

diff --git a/PKGBUILD b/PKGBUILD
index 672bc59..22d1f49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,26 +3,24 @@
 _pkgname=py4j
 pkgname=python-${_pkgname}
 pkgver=0.10.9.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Enables Python programs to dynamically access arbitrary Java objects"
 arch=('any')
-url="https://pypi.org/project/pyspark${_pkgname}"
-license=('GPL2')
-depends=('python-future')
+url="https://www.py4j.org"
+license=('BSD')
+depends=('java-runtime' 'python')
 makedepends=('python-setuptools')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
+source=("https://pypi.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
 sha256sums=('276a4a3c5a2154df1860ef3303a927460e02e97b047dc0a47c1c3fb8cce34db6')

 build() {
-    cd "${_pkgname}-$pkgver"
-        python setup.py build
+    cd "${_pkgname}-${pkgver}"
+    python setup.py build
 }

 package() {
-    cd "${_pkgname}-$pkgver"
-        export PYTHONHASHSEED=0
-        python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-        local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-        rm -rf "$pkgdir$site_packages/test"
+    cd "${_pkgname}-${pkgver}"
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE.txt \
+        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
 }
-- 
2.36.1