upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-anyjson / trunk / PKGBUILD
blobb5df6f64b34c4f5c1330a1b4b42ebee4176482af
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Benjamin A. Shelton <zancarius@gmail.com>
3 # Contributor: p2k <Patrick.Schneider@uni-ulm.de>
5 _pypiname=anyjson
6 pkgname=python-$_pypiname
7 pkgver=0.3.3
8 pkgrel=18
9 pkgdesc="Wraps the best available JSON implementation available in a common interface"
10 arch=(any)
11 url="https://pypi.python.org/pypi/$_pypiname"
12 license=('BSD')
13 depends=('python')
14 makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
15 source=(
16   "https://files.pythonhosted.org/packages/source/a/$_pypiname/$_pypiname-${pkgver}.tar.gz"
17   $_pypiname-$pkgver-python3.11.patch
19 sha256sums=('37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba'
20             '5b7867c0b633ffdc0e73361d6bec7ef0707229dc899bd9e40036637067d4f2f7')
21 b2sums=('196596b832bddf7969fa9f77f7b78e37bf7fbc93dacb2790615555072b1b504b70d43e50bd968969abe92b6503b79d392f344b72b663fc3be700a0e4053c278f'
22         '0a18b3ba23ee3cbbd0a109b4ef3607c5034eee3472630abd7fcb1068e3cd73bf24be5251bc0297a49820b3377e4662a0ec293385f085b9a000ea797d022e9b94')
24 prepare() {
25   patch -Np1 -d $_pypiname-$pkgver -i ../$_pypiname-$pkgver-python3.11.patch
27 build() {
28   cd "$_pypiname-${pkgver}"
29   python -m build --wheel --no-isolation
32 package() {
33   cd "$_pypiname-${pkgver}"
34   python -m installer --destdir="$pkgdir" dist/*.whl
36   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"