mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python-cffi: split python3-cffi to a new package
This commit is contained in:
parent
bff41a4843
commit
16530afcf8
3 changed files with 36 additions and 27 deletions
|
@ -2,11 +2,10 @@
|
||||||
pkgname=python-cffi
|
pkgname=python-cffi
|
||||||
version=1.15.1
|
version=1.15.1
|
||||||
revision=2
|
revision=2
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools libffi-devel"
|
hostmakedepends="python-setuptools libffi-devel"
|
||||||
makedepends="python-devel python3-devel libffi-devel"
|
makedepends="python-devel libffi-devel"
|
||||||
depends="python-pycparser"
|
depends="python-pycparser"
|
||||||
checkdepends="python3-pytest python3-pycparser"
|
|
||||||
short_desc="C foreign function interface for Python2"
|
short_desc="C foreign function interface for Python2"
|
||||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -15,28 +14,6 @@ changelog="https://cffi.readthedocs.io/en/latest/whatsnew.html"
|
||||||
distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz"
|
||||||
checksum=d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
|
checksum=d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
|
||||||
|
|
||||||
do_check() {
|
|
||||||
# glibc libm.so is a GNU ld script that isn't properly handled
|
|
||||||
# on dlopen; libm symbols required in these tests are missing
|
|
||||||
local excludes='not sin'
|
|
||||||
excludes+=' and not test_dlopen'
|
|
||||||
excludes+=' and not test_function_typedef'
|
|
||||||
excludes+=' and not test_wraps_from_stdlib'
|
|
||||||
excludes+=' and not test_stdcall_only_on_windows'
|
|
||||||
|
|
||||||
PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" \
|
|
||||||
python3 -m pytest c/ testing/ -x -k "$excludes"
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-cffi_package() {
|
|
||||||
depends="python3-pycparser"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove usr/lib/python3*
|
|
||||||
vlicense LICENSE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-cffi
|
|
33
srcpkgs/python3-cffi/template
Normal file
33
srcpkgs/python3-cffi/template
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Template file for 'python3-cffi'
|
||||||
|
pkgname=python3-cffi
|
||||||
|
version=1.15.1
|
||||||
|
revision=2
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools libffi-devel"
|
||||||
|
makedepends="python3-devel libffi-devel"
|
||||||
|
depends="python3-pycparser"
|
||||||
|
checkdepends="python3-pytest ${depends}"
|
||||||
|
short_desc="C foreign function interface for Python3"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://cffi.readthedocs.io/"
|
||||||
|
changelog="https://cffi.readthedocs.io/en/latest/whatsnew.html"
|
||||||
|
distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz"
|
||||||
|
checksum=d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
# glibc libm.so is a GNU ld script that isn't properly handled
|
||||||
|
# on dlopen; libm symbols required in these tests are missing
|
||||||
|
local excludes='not sin'
|
||||||
|
excludes+=' and not test_dlopen'
|
||||||
|
excludes+=' and not test_function_typedef'
|
||||||
|
excludes+=' and not test_wraps_from_stdlib'
|
||||||
|
excludes+=' and not test_stdcall_only_on_windows'
|
||||||
|
|
||||||
|
PYTHONPATH="$(cd build/lib* && pwd)" \
|
||||||
|
python3 -m pytest c/ testing/ -x -k "$excludes"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue