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

Felix Yan felixonmars at archlinux.org
Mon Jun 10 08:47:50 UTC 2019


    Date: Monday, June 10, 2019 @ 08:47:49
  Author: felixonmars
Revision: 479268

archrelease: copy trunk to community-testing-any

Added:
  python-paramiko/repos/community-testing-any/
  python-paramiko/repos/community-testing-any/PKGBUILD
    (from rev 479267, python-paramiko/trunk/PKGBUILD)

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

Copied: python-paramiko/repos/community-testing-any/PKGBUILD (from rev 479267, python-paramiko/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-06-10 08:47:49 UTC (rev 479268)
@@ -0,0 +1,58 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Mario Danic <mario.danic at gmail.com>
+
+pkgbase=python-paramiko
+pkgname=(python-paramiko python2-paramiko)
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="Python module that implements the SSH2 protocol"
+url="https://github.com/paramiko/paramiko/"
+license=('LGPL')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-bcrypt' 'python2-bcrypt'
+             'python-cryptography' 'python2-cryptography' 'python-pyasn1' 'python2-pyasn1'
+             'python-pynacl' 'python2-pynacl')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-relaxed'
+              'python2-pytest-relaxed' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/$pkgver.tar.gz")
+sha512sums=('9f40c576ba7a7fb249f466f7e157db03e75fffcf3f3d2f563a268739cfaf2a10858d8a82ee31a9e5b0543e6b84c6160b06cf93c3ea20eeb2ceb59888724e6ed7')
+
+prepare() {
+  cp -a paramiko-$pkgver{,-py2}
+
+  find paramiko-$pkgver-py2 -name '*.py' -print0 | xargs -0 \
+    sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
+        -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
+}
+
+check() {
+  cd "$srcdir"/paramiko-$pkgver
+  LANG=en_US.UTF-8 python setup.py pytest
+
+  cd "$srcdir"/paramiko-$pkgver-py2
+  LANG=en_US.UTF-8 python2 setup.py pytest
+}
+
+package_python-paramiko() {
+  depends=('python-bcrypt' 'python-cryptography' 'python-pyasn1' 'python-pynacl')
+
+  cd paramiko-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
+  install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
+  chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
+}
+
+package_python2-paramiko() {
+  depends=('python2-bcrypt' 'python2-cryptography' 'python2-pyasn1' 'python2-pynacl')
+
+  cd paramiko-$pkgver-py2
+
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
+  install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
+  chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
+}



More information about the arch-commits mailing list