[arch-commits] Commit in python-tinycss/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 3 01:29:09 UTC 2021
Date: Friday, December 3, 2021 @ 01:29:08
Author: felixonmars
Revision: 1064659
archrelease: copy trunk to community-staging-x86_64
Added:
python-tinycss/repos/community-staging-x86_64/
python-tinycss/repos/community-staging-x86_64/PKGBUILD
(from rev 1064657, python-tinycss/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-tinycss/repos/community-staging-x86_64/PKGBUILD (from rev 1064657, python-tinycss/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-03 01:29:08 UTC (rev 1064659)
@@ -0,0 +1,46 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-tinycss
+pkgver=0.4
+pkgrel=6
+pkgdesc="A complete yet simple CSS parser for Python"
+url="https://pypi.python.org/pypi/tinycss"
+license=('BSD')
+arch=('x86_64')
+depends=('python')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/t/tinycss/tinycss-$pkgver.tar.gz")
+sha256sums=('12306fb50e5e9e7eaeef84b802ed877488ba80e35c672867f548c0924a76716e')
+b2sums=('9b7691f5d5fcfb5580a9f2a0f1f50caea3dba74853917e5e46ca93cab6f35f2f8c4f5babf01d25661d05ef1b26ccc35914750917fb92b394b0ca6530a19f3514')
+
+prepare() {
+ cd "${srcdir}"/tinycss-${pkgver}
+
+ rm tinycss/speedups.c
+ # isort is not a sign of failing code
+ sed -i '/addopts/d' setup.cfg
+}
+
+build() {
+ cd "${srcdir}"/tinycss-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/tinycss-${pkgver}
+
+ pytest build/
+ find build/ -type f -name \*-PYTEST.pyc -delete
+}
+
+package() {
+ cd "${srcdir}"/tinycss-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list