[arch-commits] Commit in trash-cli/repos (2 files)
Alexander Epaneshnikov
alex19ep at gemini.archlinux.org
Fri Dec 3 22:54:34 UTC 2021
Date: Friday, December 3, 2021 @ 22:54:34
Author: alex19ep
Revision: 1064928
archrelease: copy trunk to community-staging-any
Added:
trash-cli/repos/community-staging-any/
trash-cli/repos/community-staging-any/PKGBUILD
(from rev 1064927, trash-cli/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: trash-cli/repos/community-staging-any/PKGBUILD (from rev 1064927, trash-cli/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-03 22:54:34 UTC (rev 1064928)
@@ -0,0 +1,44 @@
+# Maintainer: Alexander Epaneshnikov <alex19ep at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Pierre Neidhardt <ambrevar at gmail.com>
+# Contributor: Renato Garcia <fgarcia.renato at gmail.com>
+
+pkgname=trash-cli
+pkgver=0.21.10.24
+pkgrel=2
+pkgdesc="Command line trashcan (recycle bin) interface"
+arch=('any')
+url="https://github.com/andreafrancia/trash-cli"
+license=('GPL')
+depends=('python-psutil')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('37601b714b9a42b217765c6eb7ae20b36796b92c642feea6bd275e1c702799ed')
+
+prepare() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ # don't depend on thirdparty copies of the stdlib
+ find tests -type f -name "*.py" -exec \
+ sed -i 's/^import mock$/from unittest import mock/;s/from mock /from unittest.mock /' {} +
+}
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ # test_help failing on python 3.10
+ python -m pytest -k 'not test_help'
+}
+
+package(){
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list