[arch-commits] Commit in python-vector/repos (community-any community-any/PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Wed Dec 15 21:28:26 UTC 2021


    Date: Wednesday, December 15, 2021 @ 21:28:25
  Author: kgizdov
Revision: 1073451

archrelease: copy trunk to community-any

Added:
  python-vector/repos/community-any/
  python-vector/repos/community-any/PKGBUILD
    (from rev 1073450, python-vector/trunk/PKGBUILD)

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

Copied: python-vector/repos/community-any/PKGBUILD (from rev 1073450, python-vector/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-15 21:28:25 UTC (rev 1073451)
@@ -0,0 +1,31 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='vector'
+pkgname="python-${_pkgname}"
+pkgver='0.8.4'
+pkgrel=1
+pkgdesc="A library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way."
+arch=('any')
+url='https://github.com/scikit-hep/vector'
+license=('MIT')
+depends=('python-numpy' 'python-packaging' 'python-importlib-metadata' 'python-typing-extensions')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest' )
+source=("${pkgname}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py bdist_egg
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py install  --skip-build --root="${pkgdir}/" --optimize=1
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list