From 27f38738e069a8d0cff6bca15955c280df01d10a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 30 Jun 2019 14:56:27 -0400 Subject: [PATCH] py3-tinycss2: import from testing --- sr.ht/py3-tinycss2/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sr.ht/py3-tinycss2/APKBUILD diff --git a/sr.ht/py3-tinycss2/APKBUILD b/sr.ht/py3-tinycss2/APKBUILD new file mode 100644 index 0000000..692c107 --- /dev/null +++ b/sr.ht/py3-tinycss2/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Drew DeVault +# Maintainer: Drew DeVault +pkgname=py3-tinycss2 +_pyname=tinycss2 +pkgver=1.0.2 +pkgrel=2 +pkgdesc="Low-level CSS parser for Python" +url="https://pypi.python.org/pypi/tinycss2" +arch="noarch" +license="BSD-3-Clause" +depends="py3-webencodings" +checkdepends="py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov" +makedepends="python3-dev py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir"/$_pyname-$pkgver +replaces="py-tinycss py2-tinycss py3-tinycss" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py pytest +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="69bdf52898f9e704c01fe5fd11170e0efc9a6aca14646f5331fc06ebbdf941f9b6c798ded7d93636c7b810b35c659750c3ece3917c5c9cef4092e3e17b382dd1 tinycss2-1.0.2.tar.gz" -- 2.45.2