diff options
author | Philipp A | 2022-06-13 11:20:37 +0200 |
---|---|---|
committer | Philipp A | 2022-06-13 11:20:37 +0200 |
commit | dfac162335509e8cde48adc918ea63db4fe95f64 (patch) | |
tree | 76969309a79742c35a81937b9f02cfa311f379dd | |
download | aur-dfac162335509e8cde48adc918ea63db4fe95f64.tar.gz |
init
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..96615bf3d710 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-ipynbname + pkgdesc = Retrieve notebook filename and the full path to notebook when run from Jupyter Lab. + pkgver = 2021.3.2 + pkgrel = 1 + url = https://github.com/msm1089/ipynbname + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python-installer + makedepends = python-build + depends = python-ipykernel + depends = python-jupyter_core + depends = python-traitlets + source = https://files.pythonhosted.org/packages/source/i/ipynbname/ipynbname-2021.3.2.tar.gz + sha256sums = cf7bae999005dce012738d09610e69a47acd765797c0365c803f96c21ea2f32b + +pkgname = python-ipynbname diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1d2dabc4faac --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/ +/pkg/ +/*.tar.gz +/*.pkg.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7a3c63ed432a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Philipp A. <flying-sheep@web.de> +_name=ipynbname +pkgname=python-$_name +pkgver=2021.3.2 +pkgrel=1 +pkgdesc='Retrieve notebook filename and the full path to notebook when run from Jupyter Lab.' +arch=(any) +url="https://github.com/msm1089/$_name" +license=(MIT) +depends=(python-ipykernel python-jupyter_core python-traitlets) +makedepends=(python-setuptools python-installer python-build) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('cf7bae999005dce012738d09610e69a47acd765797c0365c803f96c21ea2f32b') + +build() { + cd "$_name-$pkgver" + python -m build --wheel --no-isolation +} + +package() { + cd "$_name-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl +} |