diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-04-03 16:19:21 -0400 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-05 12:42:59 +0000 |
commit | eb799ff04a5bda677c8f7034980f642274f44e4a (patch) | |
tree | 06fb2abb6dc965f7e30c06afe2f57b9f169ea3c9 /testing/py3-tinycss2 | |
parent | d8d84fd8672056a9fe5ff5022e8d5cb6c173c563 (diff) | |
download | aports-eb799ff04a5bda677c8f7034980f642274f44e4a.tar.bz2 aports-eb799ff04a5bda677c8f7034980f642274f44e4a.tar.xz |
testing/py3-tinycss2: new APKBUILD
Diffstat (limited to 'testing/py3-tinycss2')
-rw-r--r-- | testing/py3-tinycss2/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py3-tinycss2/APKBUILD b/testing/py3-tinycss2/APKBUILD new file mode 100644 index 0000000000..e1e169e464 --- /dev/null +++ b/testing/py3-tinycss2/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Drew DeVault <sir@cmpwn.com> +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=py3-tinycss2 +_pyname=tinycss2 +pkgver=1.0.2 +pkgrel=0 +pkgdesc="Low-level CSS parser for Python" +url="https://pypi.python.org/pypi/tinycss2" +arch="noarch" +license="BSD-3-Clause" +depends="py3-webencodings" +makedepends="python3-dev py3-setuptools py3-flake8 py3-pytest py3-pytest-cov" +_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" + +prepare() { + cd "$builddir" + sed -i setup.cfg -e 's/--flake8//' -e 's/--isort//' + sed -i setup.cfg -e 's/pytest-flake8//' -e 's/pytest-isort//' +} + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py pytest +} + +package() { + cd "$builddir" + mkdir -p "$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="69bdf52898f9e704c01fe5fd11170e0efc9a6aca14646f5331fc06ebbdf941f9b6c798ded7d93636c7b810b35c659750c3ece3917c5c9cef4092e3e17b382dd1 tinycss2-1.0.2.tar.gz" |