PKGBUILDS/python-proton-client/PKGBUILD
2022-02-07 10:59:15 -06:00

26 lines
846 B
Bash

#Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=python-proton-client
_gitpkgname=proton-python-client
pkgver=0.7.1
pkgrel=1
pkgdesc="Official Proton API Python Client, maintained by the Proton(VPN/Mail) team."
arch=("any")
url="https://github.com/ProtonMail/proton-python-client"
license=("GPL3")
groups=("ProtonVPN")
depends=("python-requests" "python-bcrypt" "python-gnupg" "python-pyopenssl" "python-dnspython")
conflicts=("python-protonvpn-nm-lib<3.4.0")
makedepends=("python-setuptools")
source=("https://github.com/ProtonMail/proton-python-client/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('88d2546a922d9053988b5e1863bf6cf965e97b4c643cd879f16bb3f0b5f02b5e')
build() {
cd "$_gitpkgname-$pkgver"
python setup.py build
}
package() {
cd "$_gitpkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}