python-tweepy: drop package
This commit is contained in:
parent
ddeff1ad07
commit
919b5a0291
3 changed files with 23 additions and 43 deletions
|
@ -1,42 +0,0 @@
|
|||
# Template file for 'python-tweepy'
|
||||
pkgname=python-tweepy
|
||||
version=3.8.0
|
||||
revision=2
|
||||
archs=noarch
|
||||
wrksrc="tweepy-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module="tweepy"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-requests-oauthlib python-six python-pysocks"
|
||||
short_desc="Twitter library for Python2"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/tweepy/tweepy"
|
||||
distfiles="${PYPI_SITE}/t/tweepy/tweepy-${version}.tar.gz"
|
||||
checksum=8abd828ba51a85a2b5bb7373715d6d3bb32d18ac624e3a4db02e4ef8ab48316b
|
||||
python_version=2
|
||||
|
||||
post_install() {
|
||||
# We cannot fetch this as distfile without create_wrksrc=yes which
|
||||
# OTOH makes it difficult to build. Just fetch the LICENSE text now.
|
||||
$XBPS_FETCH_CMD -o LICENSE.txt https://raw.githubusercontent.com/tweepy/tweepy/master/LICENSE
|
||||
digest=$($XBPS_DIGEST_CMD <LICENSE.txt)
|
||||
if [ "$digest" != "ae8fd13a3925130beb68500cccb62b559e1fbefd8b14e73d6eb208e2e4277841" ]; then
|
||||
msg_error "LICENSE digest changed: $digest\n"
|
||||
fi
|
||||
vlicense LICENSE.txt
|
||||
# remove examples from site-packages root
|
||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
|
||||
}
|
||||
|
||||
python3-tweepy_package() {
|
||||
archs=noarch
|
||||
pycompile_module="tweepy"
|
||||
depends="python3-requests-oauthlib python3-six python3-pysocks"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
python_version=3
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE.txt
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
python-tweepy
|
23
srcpkgs/python3-tweepy/template
Normal file
23
srcpkgs/python3-tweepy/template
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'python3-tweepy'
|
||||
pkgname=python3-tweepy
|
||||
version=3.8.0
|
||||
revision=3
|
||||
wrksrc="tweepy-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-requests-oauthlib python3-six python3-pysocks"
|
||||
short_desc="Twitter library for Python3"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://github.com/tweepy/tweepy"
|
||||
distfiles="${PYPI_SITE}/t/tweepy/tweepy-${version}.tar.gz
|
||||
https://raw.githubusercontent.com/tweepy/tweepy/v$version/LICENSE"
|
||||
checksum="8abd828ba51a85a2b5bb7373715d6d3bb32d18ac624e3a4db02e4ef8ab48316b
|
||||
bf9bc5b9dcb8421bb3c342bb7fd29194688e1262b50766bd71b21a07461e74b7"
|
||||
skip_extraction="LICENSE"
|
||||
|
||||
post_install() {
|
||||
vlicense $XBPS_SRCDISTDIR/$pkgname-$version/LICENSE
|
||||
# remove examples from site-packages root
|
||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
|
||||
}
|
Loading…
Reference in a new issue