Package Details: python-neo4j 5.3.0-3

Git Clone URL: https://aur.archlinux.org/python-neo4j.git (read-only, click to copy)
Package Base: python-neo4j
Description: Neo4j Bolt driver for Python
Upstream URL: https://pypi.org/project/neo4j/
Licenses: GPLv3
Submitter: intensity
Maintainer: intensity
Last Packager: intensity
Votes: 0
Popularity: 0.000000
First Submitted: 2020-11-02 05:47 (UTC)
Last Updated: 2023-07-27 03:59 (UTC)

Latest Comments

intensity commented on 2023-07-27 03:59 (UTC)

Good point, updated

mnd999 commented on 2023-07-12 15:09 (UTC)

Also seems to depend on python-build and python-install.

intensity commented on 2023-06-10 19:34 (UTC)

Thanks for the note, updated :)

I didn't know how to keep the -O1 flag but it's probably not necessary, so just dropped it for now.

dreieck commented on 2023-05-07 15:48 (UTC)

I think you should switch to using python -m build and python -m installer instead of invoking setup.py directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

e.g. (just the idea, not tested with your package):

[...]
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  [...]
)
[...]
build() {
  [...]
  python -m build --wheel --no-isolation
  # maybe build documentation, ...
  [...]
}

package() {
  [...]
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
  [...]
  # Maybe install documentation, license, ...
  [...]
}

Regards!

intensity commented on 2023-01-05 14:11 (UTC)

Thanks, that's much easier :) updated

Rogach commented on 2022-12-31 13:09 (UTC)

Latest python package guidelines suggest that it's possible to use stable URL scheme in order to avoid extracting hashes manually for each PKGBUILD update. Here's the diff for your convenience:

diff --git a/PKGBUILD b/PKGBUILD
index 4e7810e..fce2241 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,9 +7,8 @@
 # profit

 pkgname=python-neo4j
-_pypiname=neo4j
-_pypidir="fe/a0/f085e0b6b3f93e207408a529d9bc738c0d3a3583a4e6a178a805928c14b6"
-pkgver=4.4.4
+_name=${pkgname#python-}
+pkgver=5.3.0
 pkgrel=1
 pkgdesc="Neo4j Bolt driver for Python"
 url="https://pypi.org/project/neo4j/"
@@ -17,10 +16,10 @@ arch=('any')
 license=('GPLv3')
 depends=('python')
 makedepends=('python-setuptools')
-source=(${_pypiname}-${pkgver}.tar.gz::"https://files.pythonhosted.org/packages/${_pypidir}/${_pypiname}-${pkgver}.tar.gz")
-sha256sums=('4f8982028021f9fc5e3e3605e6368302d6a97ea75a48666ae49fcc974113a3c8')
+source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('0c1c7d8812eed60da0a442d1e0f35edbda248255703e506a081cb70e083b3b5c')

 package() {
-         cd ${_pypiname}-${pkgver}
-           python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
-       }
+  cd ${_name}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+}

(https://wiki.archlinux.org/title/Python_package_guidelines)