[arch-commits] Commit in python-hstspreload/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Fri Jul 10 13:59:22 UTC 2020
Date: Friday, July 10, 2020 @ 13:59:21
Author: eschwartz
Revision: 663104
archrelease: copy trunk to community-any
Added:
python-hstspreload/repos/community-any/
python-hstspreload/repos/community-any/PKGBUILD
(from rev 663103, python-hstspreload/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-hstspreload/repos/community-any/PKGBUILD (from rev 663103, python-hstspreload/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-07-10 13:59:21 UTC (rev 663104)
@@ -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