summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27639f7885468eaa27b354322e4d03ae5a529e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Nicholas Dahm <(first).(last) at gmail>

# Update process
# Go to PyPI neo4j download page https://pypi.org/project/neo4j/#files
# Get latest URL to tar.gz, extract _pypidir and version
# Download and get sha256 checksum
# profit

pkgname=python-neo4j
_name=${pkgname#python-}
pkgver=5.20.0
pkgrel=1
pkgdesc="Neo4j Bolt driver for Python"
url="https://pypi.org/project/neo4j/"
arch=('any')
license=('GPLv3')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('c59e54a0c0fa1f109f1d2fa5293c29c2bb30ba388b4f9dd9656919793c10063a')

package() {
    cd ${_name}-${pkgver}
    # Note: As of 5.3.0-2 we removed -O1 as part of the switch from setup.py to python -m build/installer
    python -m build
    python -m installer --destdir="${pkgdir}" --prefix=/usr dist/*.whl
}