mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 00:02:17 +01:00
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-shodan
|
|
pkgver=1.30.1
|
|
pkgrel=0
|
|
pkgdesc="The official Python library for Shodan"
|
|
url="https://developer.shodan.io/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-click
|
|
py3-click-plugins
|
|
py3-colorama
|
|
py3-requests
|
|
py3-xlsxwriter
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-sphinx
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="https://pypi.python.org/packages/source/s/shodan/shodan-$pkgver.tar.gz"
|
|
builddir="$srcdir/shodan-$pkgver"
|
|
options="!check" # tests require a working api key
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
|
|
make -C docs man
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
install -Dm644 docs/_build/man/shodan-python.1 \
|
|
-t "$pkgdir"/usr/share/man/man1
|
|
}
|
|
|
|
sha512sums="
|
|
498d9057271e112940f00dda76a0ecb80a30ea66df84cfecb6e4b77197225714dc1a22d848e6b14a71a48bb4ded5e77a0924bc3915b552acb4ee35f3444cf558 shodan-1.30.1.tar.gz
|
|
"
|