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)
12
12
makedepends=(python-setuptools)
13
13
depends=(python)
14
14
checkdepends=(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' )
17
19
18
20
prepare () {
19
21
cd cbor_py-$_commit
20
22
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
21
25
}
22
26
23
27
build () {
@@ -27,9 +31,8 @@ build() {
27
31
28
32
check () {
29
33
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
33
36
}
34
37
35
38
package () {
You can’t perform that action at this time.
0 commit comments