This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ license=(Apache)
1212makedepends=(python-setuptools)
1313depends=(python)
1414checkdepends=(python-pytest)
15- source=(" $pkgname -$pkgver .tar.gz" ::" https://github.com/brianolson/cbor_py/archive/$_commit .tar.gz" )
16- sha256sums=(' d9211361e37363dfbf54fcb21d23e610aa25679609044844305c2ee5b80b78d9' )
15+ source=(" $pkgname -$pkgver .tar.gz" ::" https://github.com/brianolson/cbor_py/archive/$_commit .tar.gz"
16+ " $pkgname -issue6.patch::https://github.com/dol-sen/cbor_py/commit/abec52298fd89ed3f4c05ca4c0467c12df740f8d.patch" )
17+ sha256sums=(' d9211361e37363dfbf54fcb21d23e610aa25679609044844305c2ee5b80b78d9'
18+ ' 2f4fcc52fb28790d325355c51a3651ec8c39b85c8e6b415e3ac1394405dd0f2d' )
1719
1820prepare () {
1921 cd cbor_py-$_commit
2022 sed -i ' s#logger.warn(#logger.warning(#' cbor/tests/* .py
23+ # Backport a unmerged fix for tests https://github.com/brianolson/cbor_py/pull/19
24+ patch -Np1 -i ../$pkgname -issue6.patch
2125}
2226
2327build () {
@@ -27,9 +31,8 @@ build() {
2731
2832check () {
2933 cd cbor_py-$_commit
30- pyver=$( python -c " import sys; print('{}.{}'.format(*sys.version_info[:2]))" )
31- # test_sortkeys is broken https://github.com/brianolson/cbor_py/issues/6
32- PYTHONPATH=build/lib.linux-$CARCH -$pyver pytest -k ' not test_sortkeys'
34+ pyver=$( python -c " import sys; print('{}{}'.format(*sys.version_info[:2]))" )
35+ PYTHONPATH=build/lib.linux-$CARCH -cpython-$pyver pytest
3336}
3437
3538package () {
You can’t perform that action at this time.
0 commit comments