Date: Wednesday, April 5, 2023 @ 18:26:04
Author: felixonmars
Revision: 1437886
archrelease: copy trunk to community-staging-any
Added:
python-fixtures/repos/community-staging-any/
python-fixtures/repos/community-staging-any/PKGBUILD
(from rev 1437885, python-fixtures/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-fixtures/repos/community-staging-any/PKGBUILD (from rev 1437885,
python-fixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 18:26:04 UTC (rev 1437886)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-fixtures
+pkgver=4.0.1
+pkgrel=3
+pkgdesc="Fixtures, reusable state for writing clean tests and more"
+arch=('any')
+license=('Apache')
+url="https://launchpad.net/python-fixtures"
+depends=('python-pbr' 'python-six' 'python-testtools')
+checkdepends=('python-subunit')
+source=("https://pypi.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz")
+sha512sums=('722436f146768e4db1e3312a0db1edab2a7daa86107825fb2436654eaf74e00f569357531316df506ef3f80cef89ac7185aee1adf0b00a6ee85cbc9811ca8100')
+
+prepare() {
+ cd fixtures-$pkgver
+ sed -i 's/import mock/from unittest import mock/'
fixtures/tests/_fixtures/test_mockpatch.py
+}
+
+build() {
+ cd fixtures-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd fixtures-$pkgver
+ python -m testtools.run fixtures.test_suite
+}
+
+package() {
+ cd fixtures-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}