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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 20:20:51 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:20:51
  Author: foutrelis
Revision: 520470

archrelease: copy trunk to community-staging-any

Added:
  python-trustme/repos/community-staging-any/
  python-trustme/repos/community-staging-any/PKGBUILD
    (from rev 520469, python-trustme/trunk/PKGBUILD)

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

Copied: python-trustme/repos/community-staging-any/PKGBUILD (from rev 520469, python-trustme/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:20:51 UTC (rev 520470)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-trustme
+_pyname=${pkgname/python-/}
+pkgver=0.5.2
+pkgrel=2
+pkgdesc='Library for fake certificate authority (CA) to generate fake TLS certs'
+url='https://trustme.readthedocs.io'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-cryptography')
+makedepends=('python' 'python-setuptools' 'python-cryptography')
+checkdepends=('python-pytest' 'python-pyopenssl' 'python-service_identity')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/python-trio/trustme/archive/v${pkgver}.tar.gz)
+sha512sums=('f2afc6782daee036565c79aa86b176a734ed9d0bb7248a56c8be87806e54287ac579f26857e241ff4daff3f6a063afa9dbe927e0aa8439a37880fcf065afa526')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  PYTHONPATH=. py.test
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 LICENSE.MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list