Skip to content

Commit

Permalink
python-flickrapi: initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed May 16, 2024
1 parent 77c6bbe commit 57e9d1b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/python-flickrapi/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-flickrapi
_pkgname=${pkgname#python-}
pkgver=2.4.0
pkgrel=9
pkgdesc='The official Python interface to the Flickr API.'
arch=('any')
url='https://stuvel.eu/flickrapi'
license=('Python')
depends=('python-six' 'python-requests-oauthlib' 'python-requests-toolbelt')
makedepends=('python-build' 'python-pip')
checkdepends=('python-nose')
source=("https://pypi.io/packages/source/f/flickrapi/flickrapi-$pkgver.tar.gz")
sha512sums=('8c14a00850fa0d70d5f0f0e856425b09cd25746f8ed3aaf34f59e0f8e8567ebb814893ddc3c768500207ec1fd437179ccae24d39a167f116020d4cb97d4cce1d')

build() {
cd "$_pkgname-$pkgver"

python -m build --wheel --outdir="$startdir/dist"
}

package() {
cd "$_pkgname-$pkgver"

pip install \
--verbose \
--disable-pip-version-check \
--no-warn-script-location \
--ignore-installed \
--no-compile \
--no-deps \
--root="$pkgdir" \
--prefix=/usr \
--no-index \
--find-links="file://$startdir/dist" \
$_pkgname
}

0 comments on commit 57e9d1b

Please sign in to comment.