mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
parent
cfb0d7abee
commit
cd30771a14
2 changed files with 48 additions and 0 deletions
47
srcpkgs/python-hypothesis/template
Normal file
47
srcpkgs/python-hypothesis/template
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
# Template file for 'python-hypothesis'
|
||||||
|
pkgname=python-hypothesis
|
||||||
|
version=3.38.0
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname/python-//}-python-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
pycompile_module="hypothesis"
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
checkdepends="python3-pytest python-pytest python3-attrs python-attrs python3-coverage
|
||||||
|
python-coverage python3-pytz python-enum34 python3-flaky"
|
||||||
|
depends="python-attrs python-coverage python-enum34 python-pytz python-pandas"
|
||||||
|
short_desc="A Python2 library for property based testing"
|
||||||
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
|
license="MPL-2"
|
||||||
|
homepage="http://hypothesis.works/"
|
||||||
|
distfiles="https://github.com/HypothesisWorks/hypothesis-python/archive/${version}.tar.gz"
|
||||||
|
checksum=578282ada992e3669743f01dcffeb39aceeaa44e63e96b9acde6454196c51997
|
||||||
|
noarch=yes
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
# pytest doesn't recognize -n switch
|
||||||
|
sed -i 's/ -n 2$//' tox.ini
|
||||||
|
|
||||||
|
# In python3 mock is actually unittest.mock
|
||||||
|
sed -i 's/from mock/from unittest.mock/' tests/cover/test_regressions.py
|
||||||
|
sed -i 's/from mock/from unittest.mock/' tests/cover/test_reflection.py
|
||||||
|
|
||||||
|
# Add variables that will be used by python to find the local
|
||||||
|
# hypothesis build
|
||||||
|
PY3PATH="${PWD}/build-3.6/lib"
|
||||||
|
PY2PATH="${PWD}/build-2.7/lib"
|
||||||
|
|
||||||
|
PYTHONPATH="${PY3PATH}" python3 -m pytest tests/cover
|
||||||
|
PYTHONPATH="${PY3PATH}" python3 -m pytest tests/py3
|
||||||
|
PYTHONPATH="${PY2PATH}" python2 -m pytest tests/py2
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-hypothesis_package() {
|
||||||
|
noarch=yes
|
||||||
|
pycompile_module="hypothesis"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
depends="python3-attrs python3-coverage python3-pytz python3-pandas"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-hypothesis
Symbolic link
1
srcpkgs/python3-hypothesis
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-hypothesis
|
Loading…
Add table
Reference in a new issue