[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Fri Jul 10 13:59:04 UTC 2020


    Date: Friday, July 10, 2020 @ 13:59:03
  Author: eschwartz
Revision: 663103

addpkg: python-hstspreload 2020.7.7-2: dependency of authlib/httpx

This... hurts. It's basically certifi for HSTS, with weekly updating python
modules just to deliver data files into your PYTHONPATH. And it doesn't use the
upstream format either. On the other hand, libhsts isn't packaged anywhere and
it isn't clear what the alternative is.

Added:
  python-hstspreload/
  python-hstspreload/repos/
  python-hstspreload/trunk/
  python-hstspreload/trunk/PKGBUILD

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

Added: python-hstspreload/trunk/PKGBUILD
===================================================================
--- python-hstspreload/trunk/PKGBUILD	                        (rev 0)
+++ python-hstspreload/trunk/PKGBUILD	2020-07-10 13:59:03 UTC (rev 663103)
@@ -0,0 +1,38 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=hstspreload
+pkgname=python-hstspreload
+pkgver=2020.7.7
+pkgrel=2
+pkgdesc="Chromium HSTS Preload list as a Python package"
+arch=('any')
+url="https://github.com/sethmlarson/${_pkgname}"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+#checkdepends=('python-pytest' 'python-urllib3')
+#source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha512sums=('6d35ab04556ef4a3bfac3686d7dff5bf6327f4afe723bcdc72894206a09c0b727bba7456f9b05b58b61f9c35975c9b897e28f09df0397bd676b8ac03fe712860')
+b2sums=('1eb636660c0036bc6f29188fa1f8d34b86e18895afd81f7acd367d79e1dd8cee682d8940a73e33949931d3601810287a6af6eaf246b8700326d86601e7458782')
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+# This runs around 230k tests, checking to see if the online list matches the current one.
+# It can take 5 minutes just to collect the tests. They're not distributed in the PyPI tarball.
+#check() {
+#    cd "${srcdir}"/${_pkgname}-${pkgver}
+#
+#    python -m pytest
+#}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list