summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2024-12-27 01:16:15 (GMT)
committerBritney Fransen <brfransen@gmail.com>2024-12-27 01:16:15 (GMT)
commitff0f0c88d45ea78556bbc724d0fc4de0fd28b738 (patch)
tree7420f133196f2f76db8b31fd276c3a78d8070264
parentca48f66fbe252460d4da9cc0e766fc5ce13182aa (diff)
downloadlinhes_pkgbuild-ff0f0c88d45ea78556bbc724d0fc4de0fd28b738.zip
linhes_pkgbuild-ff0f0c88d45ea78556bbc724d0fc4de0fd28b738.tar.gz
linhes_pkgbuild-ff0f0c88d45ea78556bbc724d0fc4de0fd28b738.tar.bz2
python-future: initial inclusion
-rw-r--r--linhes/python-future/.nvchecker.toml3
-rw-r--r--linhes/python-future/PKGBUILD41
2 files changed, 44 insertions, 0 deletions
diff --git a/linhes/python-future/.nvchecker.toml b/linhes/python-future/.nvchecker.toml
new file mode 100644
index 0000000..399c8bd
--- /dev/null
+++ b/linhes/python-future/.nvchecker.toml
@@ -0,0 +1,3 @@
+[python-future]
+source = "pypi"
+pypi = "future"
diff --git a/linhes/python-future/PKGBUILD b/linhes/python-future/PKGBUILD
new file mode 100644
index 0000000..8e6a2a2
--- /dev/null
+++ b/linhes/python-future/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+# Contributor: Gaute Hope <eg@gaute.vetsj.com>
+# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com>
+
+pkgname=python-future
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Clean single-source support for Python 3 and 2"
+url="https://python-future.org/"
+arch=('any')
+license=('MIT')
+depends=('python')
+provides=('futurize' 'pasteurize')
+#checkdepends=('python-requests' 'python-pytest')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+optdepends=('python-setuptools: futurize and pasteurize scripts')
+options=('!emptydirs')
+source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz")
+sha512sums=('8e28d53172e3ae7b3b27c424a48fb698a6e86bf1c648cdf74e7fd57d34901a9bda18429fe4e176d70be67fc6c80b7f961b3021356594e38b5f294406af40bc61')
+
+build() {
+ cd "$srcdir"/future-$pkgver
+ python -m build --wheel
+}
+# https://github.com/PythonCharmers/python-future/issues/640
+# https://python-future.org/overview.html#status
+#check() {
+# cd "$srcdir"/future-$pkgver
+# # test_future needs python2 so it is disabled here
+# #PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_future
+# PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_past
+#}
+
+package() {
+ cd future-$pkgver
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -D -m644 LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}