aboutsummaryrefslogblamecommitdiffstats
path: root/main/py3-cryptography/APKBUILD
blob: 81d5c71649f6d394d6bbbc24b387d0341baefdab (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
                        
                    
            
        

                                                         
          
                                    

                                                               



                                                                                                                  
 


                                                                     



                      
         
                              



                                                  

 
         
                                                                                                         

 
           
                                                                            

 

                                                                                                                                                                       
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=py3-cryptography
_pyname=cryptography
pkgver=3.3.1
pkgrel=0
pkgdesc="Cryptographic recipes and primitives for Python"
url="https://cryptography.io/"
arch="all"
license="Apache-2.0 OR BSD-3-Clause"
depends="python3 py3-cffi py3-idna py3-asn1crypto py3-six"
makedepends="python3-dev py3-setuptools libffi-dev openssl-dev"
checkdepends="py3-pytest py3-hypothesis py3-tz py3-pretend py3-iso8601"
source="https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-$pkgver.tar.gz
	https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-cryptography" # Backwards compatibility
provides="py-cryptography=$pkgver-r$pkgrel" # Backwards compatibility

# secfixes:
#   3.2.1-r0:
#     - CVE-2020-25659

build() {
	python3 setup.py build

	# prepare cryptography vectors for testing
	cd "$srcdir/cryptography_vectors-$pkgver"
	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.linux-*):$srcdir/cryptography_vectors-$pkgver/build/lib" pytest
}

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

sha512sums="62192fe0fd3bb8844ccc0056ab72a42b038db2a4ecb0928543c520b85e1de93066dab0d604acf23d37395d68172b9618f81c6022a59ec49725bc1862096d15d1  cryptography-3.3.1.tar.gz
a102535bd3cf72118106ca7268d5a9921738d41f81247940c550961d61cb0d1869095b7891c39e8dc15816f7d38230622846747b4b7a3f226f09306cf86220bd  cryptography_vectors-3.3.1.tar.gz"