Date: Thursday, April 6, 2023 @ 02:11:03
  Author: felixonmars
Revision: 1438062

archrelease: copy trunk to community-staging-any

Added:
  python-hatch-nodejs-version/repos/community-staging-any/
  python-hatch-nodejs-version/repos/community-staging-any/PKGBUILD
    (from rev 1438061, python-hatch-nodejs-version/trunk/PKGBUILD)

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

Copied: python-hatch-nodejs-version/repos/community-staging-any/PKGBUILD (from 
rev 1438061, python-hatch-nodejs-version/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 02:11:03 UTC (rev 1438062)
@@ -0,0 +1,31 @@
+# Maintainer:
+
+pkgname=python-hatch-nodejs-version
+pkgver=0.3.1
+pkgrel=2
+pkgdesc='Hatch plugin for versioning from a package.json file'
+arch=(any)
+url='https://github.com/agoose77/hatch-nodejs-version'
+license=(MIT)
+depends=(python-hatchling)
+makedepends=(python-build python-installer)
+checkdepends=(python-pytest)
+source=(https://github.com/agoose77/hatch-nodejs-version/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('9959efbee3021dba4da7f8c152cacf104c746341ed176cd0488cbf3b45deba4d')
+
+build() {
+  cd hatch-nodejs-version-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd hatch-nodejs-version-$pkgver
+  PYTHONPATH="$PWD"/src \
+  pytest -v
+}
+
+package() {
+  cd hatch-nodejs-version-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to