68 lines
3.2 KiB
Bash
68 lines
3.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=cython
|
|
pkgver=3.0.8
|
|
pkgrel=01
|
|
pkgdesc='C-Extensions for Python'
|
|
url='https://cython.org'
|
|
depends=(python)
|
|
replaces=(cython-dev)
|
|
makedepends=(python-build python-installer python-setuptools python-wheel)
|
|
checkdepends=(python-pytest gdb python-numpy)
|
|
source=(https://github.com/cython/cython/archive/$pkgver/$pkgname-$pkgver.tar.gz)
|
|
|
|
#prepare() {
|
|
# patch -d $pkgname-$pkgver -p1 < 26edfbc0.patch # Fix compilation regressions
|
|
#}
|
|
|
|
build() {
|
|
cd cython-$pkgver
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
#check() {
|
|
# cd cython-$pkgver
|
|
# python -m venv --system-site-packages test-env
|
|
# test-env/bin/python -m installer dist/*.whl
|
|
# test-env/bin/python -m pytest -v --ignore docs \
|
|
# --ignore pyximport/test/test_reload.py \
|
|
# --ignore Cython/Debugger/Tests
|
|
#}
|
|
#========================================== short test summary info ===========================================
|
|
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestStringAnnotations::test_classvar_module_level_import - ImportError: cannot import name 'dataclass_module_1' from 'test' (unknown location)
|
|
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestStringAnnotations::test_text_annotations - ImportError: cannot import name 'dataclass_textanno' from 'test' (unknown location)
|
|
#FAILED Tools/dataclass_test_data/test_dataclasses.py::TestAbstract::test_maintain_abc - AssertionError: "class Date without an implementation for abstract method foo" does not match "Can't inst...
|
|
#FAILED pyximport/test/test_pyximport.py::test_with_reload - ModuleNotFoundError: No module named 'dummy'
|
|
#FAILED pyximport/test/test_pyximport.py::test_zip - ModuleNotFoundError: No module named 'test_zip_module'
|
|
#FAILED tests/run/test_grammar.py::TokenTests::test_eof_error - AssertionError: 'unexpected EOF' not found in "'(' was never closed (<test>, line 1)"
|
|
#FAILED tests/run/test_grammar.py::GrammarTests::testAssert2 - AssertionError: 'msg\nassert 0' != 'msg'
|
|
#FAILED tests/run/test_grammar.py::GrammarTests::test_funcdef - AssertionError: {'return': <class 'list'>} != {'return': 'list'}
|
|
#FAILED tests/run/test_grammar.py::GrammarTests::test_var_annot_basic_semantics - AssertionError: {'_C__foo': <class 'int'>, 's': <class 'str'>} != {'_C__foo': 'int', 's': 'str'}
|
|
#=========================== 9 failed, 440 passed, 12 skipped, 2 warnings in 4.03s ============================
|
|
|
|
|
|
package() {
|
|
cd cython-$pkgver
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
for f in cygdb cython cythonize; do
|
|
mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
|
|
ln -s ${f}3 "$pkgdir"/usr/bin/$f
|
|
done
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(APACHE)
|
|
|
|
sha256sums=(b20cd126f40d78228c3ba101a7cfc0a3e8519de1bdc2a58f26aec5284c8f0340) # cython-3.0.8.tar.gz
|
|
|
|
## 64aabc34eae261db6dd5f55f00e4a88e691661ee28b24d9fe246c3198b963acf cython-3.0.8-01-x86_64.pkg.tar.lz
|
|
|