[arch-commits] Commit in python-tinycss/repos (2 files)

Eli Schwartz eschwartz at archlinux.org
Sun Jun 30 23:12:16 UTC 2019


    Date: Sunday, June 30, 2019 @ 23:12:15
  Author: eschwartz
Revision: 486841

archrelease: copy trunk to community-x86_64

Added:
  python-tinycss/repos/community-x86_64/
  python-tinycss/repos/community-x86_64/PKGBUILD
    (from rev 486840, python-tinycss/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: python-tinycss/repos/community-x86_64/PKGBUILD (from rev 486840, python-tinycss/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-06-30 23:12:15 UTC (rev 486841)
@@ -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=3
+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