1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-pyfakefs/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

30 lines
804 B
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-pyfakefs
_pkgname=${pkgname#py3-}
pkgver=5.0.0
pkgrel=0
pkgdesc="fake file system that mocks the Python file system modules"
options="!check" # flaky tests
url="https://github.com/jmcgeheeiv/pyfakefs/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
807042f7fcffb72590cada04634ec4a1c9bdc901f56012907cef67df2c04e847d23c2f4b6925240664e03d9640d9ebe3f2137efd0d28190de53386bb9a15cca2 pyfakefs-5.0.0.tar.gz
"