blob: 940b6f0ce8c6e80a5c913fd4d421e01918b901c7 (
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
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-shodan
pkgver=1.28.0
pkgrel=1
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-setuptools py3-sphinx"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="https://github.com/achillean/shodan-python/archive/$pkgver/py3-shodan-$pkgver.tar.gz"
builddir="$srcdir/shodan-python-$pkgver"
options="!check" # tests require a working api key
build() {
python3 setup.py build
make -C docs man
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
install -Dm644 docs/_build/man/shodan-python.1 -t "$pkgdir"/usr/share/man/man1
}
sha512sums="
cb2476faf2c435d29823635e5262bdf6b224b2a5f19b77513fb6e920f4d042b15a7fd23cea7e2a29bc73b00be188dfac16f945fba090da28a72d0342357232c3 py3-shodan-1.28.0.tar.gz
"
|