summaryrefslogblamecommitdiff
path: root/user/py3-pyyaml/APKBUILD
blob: 6dece19c37a7d536f54ea85dbf2f998fd2adc05a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                         

               

                                            
                                    
             


                                       
              
                                                                                          



                                    

                                                                                                    












                                                               
                                                                                                                                                                    
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer: zlg <zlg+adelie@zlg.space>
pkgname=py3-pyyaml
_pkgname=pyyaml
pkgver=5.1
pkgrel=0
pkgdesc="YAML parser and emitter for Python"
url="https://pyyaml.org/wiki/PyYAML"
arch="noarch"
license="MIT"
depends="python3 yaml"
makedepends="python3-dev yaml yaml-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/yaml/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	# Seems like they need Cython to build the C extension now, so it falls back to pure Python.
	# Once we ship Cython we can probably change this.
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py test
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="e49f593b9f60018efa19629b902ad1e56f79537106a4cd019baa324a74a8af7563d294db012280261fc7fa9d686dd5af656e22fb4bf6a6ccfd0084515b9591d5  py3-pyyaml-5.1.tar.gz"