[arch-commits] Commit in trash-cli/repos (2 files)
Alexander Epaneshnikov
alex19ep at gemini.archlinux.org
Wed Feb 16 11:19:54 UTC 2022
Date: Wednesday, February 16, 2022 @ 11:19:54
Author: alex19ep
Revision: 1133437
archrelease: copy trunk to community-testing-any
Added:
trash-cli/repos/community-testing-any/
trash-cli/repos/community-testing-any/PKGBUILD
(from rev 1133436, trash-cli/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: trash-cli/repos/community-testing-any/PKGBUILD (from rev 1133436, trash-cli/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-02-16 11:19:54 UTC (rev 1133437)
@@ -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=3
+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' 'python-mock' 'python-six')
+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