[arch-commits] Commit in python-pint/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Apr 6 21:00:45 UTC 2022


    Date: Wednesday, April 6, 2022 @ 21:00:45
  Author: felixonmars
Revision: 1181890

archrelease: copy trunk to community-testing-any

Added:
  python-pint/repos/community-testing-any/
  python-pint/repos/community-testing-any/PKGBUILD
    (from rev 1181889, python-pint/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-pint/repos/community-testing-any/PKGBUILD (from rev 1181889, python-pint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2022-04-06 21:00:45 UTC (rev 1181890)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Matthew Sloan matthew at sloan.cc
+
+pkgname=python-pint
+pkgver=0.19
+pkgrel=1
+pkgdesc="A unit library for Python"
+arch=('any')
+license=('BSD')
+url="https://pint.readthedocs.org"
+depends=('python')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-subtests' 'python-numpy' 'python-uncertainties')
+source=("https://pypi.io/packages/source/P/Pint/Pint-$pkgver.tar.gz")
+sha512sums=('7d76d3b23e78c6e02f9d96b07da2823b779fef83325258737e04eabf6658bd8480b5fb43688186f9d05cf09db5787947148a2a81d068e90895da48e2cb06769a')
+
+prepare() {
+  cd Pint-$pkgver
+  sed -i 's/pkg_resources.extern.//' pint/quantity.py
+}
+
+check() {
+  cd Pint-$pkgver
+  pytest
+}
+
+package() {
+  cd Pint-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list