[arch-commits] Commit in (3 files)
Maxime Gauduin
alucryd at archlinux.org
Thu Feb 27 09:58:25 UTC 2020
Date: Thursday, February 27, 2020 @ 09:58:25
Author: alucryd
Revision: 583761
add python-pyfakefs
Added:
python-pyfakefs/
python-pyfakefs/trunk/
python-pyfakefs/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: python-pyfakefs/trunk/PKGBUILD
===================================================================
--- python-pyfakefs/trunk/PKGBUILD (rev 0)
+++ python-pyfakefs/trunk/PKGBUILD 2020-02-27 09:58:25 UTC (rev 583761)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-pyfakefs
+pkgver=3.7.1
+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
+)
+source=(git+https://github.com/jmcgeheeiv/pyfakefs.git#tag=ad23e51855dd72fc2a88f0b00fc247359c26228e)
+sha256sums=(SKIP)
+
+pkgver() {
+ cd pyfakefs
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd pyfakefs
+
+ python setup.py build
+}
+
+check() {
+ cd pyfakefs
+
+ tox -e py38
+}
+
+package() {
+ cd pyfakefs
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list