diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-07-12 13:43:50 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-07-12 13:43:50 (GMT) |
commit | 49517efc2653ed1c8535e5cb8afcafb939d75bdb (patch) | |
tree | 07d2a7efbc4e5f5fe6e9406271b62df5d24ec9cc /linhes/python-time-machine | |
parent | 9eda529d284b19a31676f6f661071d4f78f57ccb (diff) | |
download | linhes_pkgbuild-49517efc2653ed1c8535e5cb8afcafb939d75bdb.zip linhes_pkgbuild-49517efc2653ed1c8535e5cb8afcafb939d75bdb.tar.gz linhes_pkgbuild-49517efc2653ed1c8535e5cb8afcafb939d75bdb.tar.bz2 |
python-time-machine: initial inclusion; dep of python-requests-cache
Diffstat (limited to 'linhes/python-time-machine')
-rw-r--r-- | linhes/python-time-machine/PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
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 +} |