aboutsummaryrefslogblamecommitdiffstats
path: root/main/py3-hypothesis/APKBUILD
blob: 60b966b5b0edeaba5212522c530892b9c80c7d6e (plain) (tree)
1
2
3
4
5
6
7
8
9

                                            
                      
            
        
                                                                      
                
                               
             
                 
                                        
                            
                                                                                
                                                                                                                                   
         
                                                                         
 

                                                                   

         



                              



                                                                                   

                                                                                             


           
                                                               

 
                                                                                                                                                                         
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-hypothesis
pkgver=6.8.2
pkgrel=0
pkgdesc="Advanced property-based (QuickCheck-like) testing for Python"
options="!check"
url="https://hypothesis.works/"
arch="noarch"
license="MPL-2.0"
depends="py3-attrs py3-sortedcontainers"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-coverage py3-tz py3-numpy py3-dateutil py3-pexpect"
source="py-hypothesis-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/hypothesis-python-$pkgver.tar.gz
	"
builddir="$srcdir/hypothesis-hypothesis-python-$pkgver/hypothesis-python"

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

build() {
	python3 setup.py build
}

check() {
	# In python3 mock is actually unittest.mock
	sed -e 's/from mock/from unittest.mock/' -i tests/cover/test_regressions.py
	sed -e 's/from mock/from unittest.mock/' -i tests/cover/test_reflection.py

	rm -rf tests/lark tests/dpcontracts tests/pandas
	PYTHONPATH="$PWD/build/lib" pytest-3 -v -k "not test_healthcheck_traceback_is_hidden"
}

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

sha512sums="95c345e869695ca9b53f345eaa52d4fb92108a830fd3a3bbe3ed1a8382be233cc56c73a321f3948c947090e89ade1849dfbc72e84b01b3e99f1336f1f5e816a3  py-hypothesis-6.8.2.tar.gz"