diff options
| author | Oleg Titov <oleg.titov@gmail.com> | 2019-05-22 13:26:31 -0500 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-11 18:49:14 -0300 |
| commit | b91c6e6cbdd7c4b620b44dee6106a4bae90977db (patch) | |
| tree | 6401d5905ab85dce10220a817bb1aee5d0eba5eb /testing | |
| parent | a992b30ea1ecc78c302f5724059911d219d1601b (diff) | |
| download | aports-b91c6e6cbdd7c4b620b44dee6106a4bae90977db.tar.bz2 aports-b91c6e6cbdd7c4b620b44dee6106a4bae90977db.tar.xz | |
testing/py3-srsly: new aport
https://github.com/explosion/srsly
Modern high-performance serialization utilities for Python
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/py3-srsly/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/py3-srsly/APKBUILD b/testing/py3-srsly/APKBUILD new file mode 100644 index 0000000000..e3dff758fe --- /dev/null +++ b/testing/py3-srsly/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Oleg Titov <oleg.titov@gmail.com> +# Maintainer: Oleg Titov <oleg.titov@gmail.com> +pkgname=py3-srsly +pkgver=0.2.0 +pkgrel=0 +pkgdesc="Modern high-performance serialization utilities for Python" +url="https://github.com/explosion/srsly" +arch="all !x86 !aarch64" # error in test for x86 and aarch64, reported upstream +license="MIT" +depends="python3 py3-numpy py3-tz" +makedepends="python3-dev py3-setuptools cython" +checkdepends="py3-pytest py3-pytest-timeout py3-mock" +subpackages="$pkgname-doc" +source="srsly-$pkgver.tar.gz::https://github.com/explosion/srsly/archive/v$pkgver.tar.gz" +builddir="$srcdir/srsly-$pkgver" + +build() { + python3 setup.py build_ext --inplace +} + +check() { + PYTHONPATH="$(echo $PWD/build/lib.*)" pytest-3 +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" + + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} + +sha512sums="2ffd145160d2b3003eed55f60e9904458abc9f3d9ba27d79370531ddcaced111643d527bc4b26afddc0ce38fa0a59dd8e8116ee56c4067ea7ba1ed2c1083571c srsly-0.2.0.tar.gz" |
