summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8613b41aec780a2a95482bd91b7fb429f33ed128 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer:
# Contributor: KUMAX <kumax2048@pm.me>

## links
# https://pypi.org/project/pip-search/
# https://github.com/victorgarric/pip_search

_module="pip_search"
_pkgname="python-${_module//_/-}"
pkgname="$_pkgname"
pkgrel=1
pkgver=0.0.13
pkgdesc="Search for pip packages via PyPi"
url="https://github.com/victorgarric/pip_search"
arch=('any')
license=("MIT")

depends=(
  'python'
  'python-rich'
  'python-beautifulsoup4'
  'python-requests'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
optdepends=(
  'python-setuptools: used on import error'
)

_pkgsrc="$_module-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.$_pkgext")
sha256sums=('7575286ce2437a71f5d7cdde7a84e1f082e83d77793541109d776c4f95903c97')

build() {
  cd "$_pkgsrc"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_pkgsrc"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE" << END
Full license text is unavailable.  However, license is MIT according to:

https://github.com/victorgarric/pip_search/blob/9ad311c4812be6fd8e6d12dec788d4b055ef612a/setup.py#L24
END
}