From 49517efc2653ed1c8535e5cb8afcafb939d75bdb Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 12 Jul 2023 09:43:50 -0400 Subject: python-time-machine: initial inclusion; dep of python-requests-cache --- linhes/python-time-machine/PKGBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 linhes/python-time-machine/PKGBUILD diff --git a/linhes/python-time-machine/PKGBUILD b/linhes/python-time-machine/PKGBUILD new file mode 100644 index 0000000..de0c639 --- /dev/null +++ b/linhes/python-time-machine/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=python-time-machine +_pkgname=time_machine +pkgver=2.11.0 +pkgrel=2 +pkgdesc="Travel through time in your tests." +arch=(any) +url="https://github.com/adamchainz/time-machine" +license=(MIT) +depends=(python-coverage python-pytest-randomly python-dateutil) +makedepends=(python-build python-installer python-wheel python-setuptools) +source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz) +sha256sums=('6c08a0f9ef8b53ca8b69c0be3f9ddb85a587a784fc239b74c35e6c47bf359515') + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + python -m build --wheel --no-isolation +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + python -m installer --destdir="$pkgdir" dist/*.whl +} -- cgit v0.12