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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:35:32 UTC 2021


    Date: Friday, December 3, 2021 @ 00:35:31
  Author: felixonmars
Revision: 1063885

archrelease: copy trunk to community-staging-any

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

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

Copied: python-proxmoxer/repos/community-staging-any/PKGBUILD (from rev 1063884, python-proxmoxer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:35:31 UTC (rev 1063885)
@@ -0,0 +1,31 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Bao Trinh <qubidt at gmail>
+# Contributor: Bastien Traverse <firstname at lastname dot email>
+
+pkgname=python-proxmoxer
+_name=${pkgname#python-}
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Python Wrapper for the Proxmox 2.x API (HTTP and SSH)"
+arch=('any')
+url="https://github.com/proxmoxer/proxmoxer"
+license=('MIT')
+depends=('python')
+optdepends=('python-requests: for https backend'
+			'python-paramiko: for ssh_paramiko backend')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('d1261c1cefd4d4faa6c654922c8db72cfee51e811e5ede4eb38a48cc62dac80e')
+
+build() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  # remove tests because they interfere with other system packages
+  sed -i "s/, 'tests', 'tests.base'//" setup.py
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list