summaryrefslogblamecommitdiff
path: root/user/py3-cryptography/APKBUILD
blob: a2f3c009185463d6929f221aa7b5898fcf53ad9d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                 

                                         

                        

                      
          

                                                                       
                                           
          
                                                   
                                    
                                                 

                                                                              

                                                
                                                                                              


                                    


                              



                             
           


                                                               
                                                                                                                                                                      
# Contributor: August Klein <amatcoder@gmail.com>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-cryptography
_pkgname=${pkgname#py3-}
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.8
pkgrel=0
pkgdesc="A package which provides cryptographic recipes and primitives"
url="https://pypi.org/project/cryptography"
arch="all"
options="!check"  # See checkdepends comment below.
license="Apache-2.0 OR BSD-3-Clause"
depends="python3 py3-cffi py3-asn1crypto py3-six"
# requires unpackaged py3-cryptography_vectors which makes no sense to package
#checkdepends="py3-attrs py3-hypothesis py3-pretend py3-pytest py3-tz"
makedepends="python3-dev libffi-dev openssl-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="bf3ca44123c693b0602be19445925f9efebd46c469909e47b7907d57141fb6bd99268c33e1fe3f42a08ab8b4edd4f98f21b6a682f530352313334dfd31ba91e7  cryptography-2.8.tar.gz"