Date: Wednesday, April 12, 2023 @ 09:37:01
Author: jelle
Revision: 1444838
archrelease: copy trunk to community-staging-any
Added:
python-pyfakefs/repos/community-staging-any/
python-pyfakefs/repos/community-staging-any/PKGBUILD
(from rev 1444837, python-pyfakefs/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-pyfakefs/repos/community-staging-any/PKGBUILD (from rev 1444837,
python-pyfakefs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-12 09:37:01 UTC (rev 1444838)
@@ -0,0 +1,47 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=python-pyfakefs
+pkgver=5.1.0
+pkgrel=1
+pkgdesc='pyfakefs implements a fake file system that mocks the Python file
system modules'
+url=https://github.com/jmcgeheeiv/pyfakefs/
+license=(APACHE)
+arch=(any)
+depends=(python-pytest)
+makedepends=(
+ git
+ python-setuptools
+)
+checkdepends=(
+ python-tox
+)
+_tag=13d0e542cf76c253c0b7973f932787b14379e990
+source=(git+https://github.com/jmcgeheeiv/pyfakefs.git#tag=${_tag})
+sha256sums=('SKIP')
+
+pkgver() {
+ cd pyfakefs
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd pyfakefs
+
+ python setup.py build
+}
+
+check() {
+ cd pyfakefs
+
+ local python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ tox -e "py${python_version}"
+}
+
+package() {
+ cd pyfakefs
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et: