archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-bcrypt / trunk / PKGBUILD
blob21355313951401974112b3bba5046c0a8937223f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Lex Black <autumn-wind at web dot de>
3 # Contributor: Igor Nemilentsev <trezorg@gmail.com>
4 # Contributor: Alexander Diana <alexander@rouk.org>
6 pkgname=python-bcrypt
7 pkgver=4.0.1
8 pkgrel=2
9 pkgdesc="Modern password hashing for your software and your servers"
10 arch=('x86_64')
11 url="https://github.com/pyca/bcrypt"
12 license=('Apache')
13 depends=('python')
14 makedepends=('python-setuptools-rust')
15 checkdepends=('python-pytest')
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/pyca/bcrypt/archive/$pkgver.tar.gz")
17 sha512sums=('eb7b1d67a2d60e82e2d2e4dcb12d7808be910f9b7aefab714a22dedbffc3722182875fdcf3c8c650c0bb7c1122e9e8bead92f18bc660043b017a14957467e2a9')
19 build() {
20   cd bcrypt-$pkgver
21   python setup.py build
24 check() {
25   cd bcrypt-$pkgver
26   PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" pytest
29 package() {
30   cd bcrypt-$pkgver
31   python setup.py install --prefix=/usr --root="$pkgdir"