Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
python-nbdime: update to 3.2.0
Browse files Browse the repository at this point in the history
* Reorder dependencies following setup.py
* Remove no longer needed python-six and python-ipython-genutils [1][2]
* Remove npm from makedepends - not needed for a PyPI tarball as the
  latter includes built frontend artifacts
* jupyter-notebook and python-packaging are needed for notebook 6
  support only [3]
* Drop no longer needed hacks

[1] jupyter/nbdime#586
[2] jupyter/nbdime#618
[3] jupyter/nbdime#656

git-svn-id: file:///srv/repos/svn-community/svn@1448348 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
yan12125 authored and svntogit committed Apr 23, 2023
1 parent c979eb2 commit c419de3
Showing 1 changed file with 17 additions and 26 deletions.
43 changes: 17 additions & 26 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,44 @@
# Contributor: Dominik Stańczak <stanczakdominik at gmail dot com>

pkgname=python-nbdime
pkgver=3.1.1+32+g9fbfd46
_commit=9fbfd4656d9ce66c44b62154097808da5df9bf48
pkgver=3.2.0
pkgrel=1
pkgdesc='Diff and merge of Jupyter Notebooks'
url='https://github.com/jupyter/nbdime'
makedepends=(python-build python-installer python-setuptools python-wheel python-tabulate
npm git)
depends=(python python-gitpython python-six jupyter-nbformat python-tornado
python-colorama python-pygments python-requests python-jinja
python-ipython-genutils jupyter-server jupyter-server-mathjax)
makedepends=(python-build python-installer python-setuptools python-wheel
python-tabulate jupyter-notebook python-packaging)
# Dependencies follow the order in setup.py
depends=(python jupyter-nbformat python-colorama python-pygments python-tornado
python-requests python-gitpython jupyter-server jupyter-server-mathjax
python-jinja
# following are detected by namcap and not listed in setup.py
python-traitlets python-jupyter-core)
checkdepends=(mercurial
python-jsonpatch python-pytest python-pytest-timeout python-pytest-tornado)
optdepends=(
'python-tabulate: for nbdime.profiling'
'jupyter-notebook: support for notebook 6'
'python-packaging: support for notebook 6'
)
provides=(jupyterlab-extension-nbdime jupyter-nbdime)
license=(BSD)
arch=(any)
source=("git+https://github.com/jupyter/nbdime#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
cd nbdime
git describe --tags | sed 's/-/+/g'
}
source=(https://files.pythonhosted.org/packages/source/n/nbdime/nbdime-$pkgver.tar.gz)
sha256sums=('e50d1a0cf672e02356e10e6d3d0aea8e8612a534ae6e1b9bfd59ac3b60c405eb')

prepare() {
cd nbdime
cd nbdime-$pkgver

# Many tests need a valid git config as well as assume `master` as the default branch
cat > gitconfig <<EOF
[user]
name = builduser
email = builduser@archlinux
[init]
defaultBranch = master
EOF
}

build() {
cd nbdime

# nbdime uses old webpack
# Similar issue: https://github.com/archlinux/svntogit-community/commit/b6d534155399e99d19b3fe3db61cd3ffd6095dba
# Related: https://github.com/jupyter/nbdime/issues/614 (3.1.1: pep517 build fails),
# https://github.com/jupyter/nbdime/pull/632 (chore: upgrade webpack to version - closed due to incompatibility with webpack plugins)
export NODE_OPTIONS="--openssl-legacy-provider"
cd nbdime-$pkgver

# Many indirect dependencies are not declared in PKGBUILDs of dependent packages
# jupyterlab is included in pyproject.toml as the jupyter command is needed for builds
Expand All @@ -59,7 +50,7 @@ build() {
}

check() {
cd nbdime
cd nbdime-$pkgver

local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m installer --destdir="$PWD/tmp_install" dist/*.whl
Expand All @@ -68,7 +59,7 @@ check() {
}

package() {
cd nbdime
cd nbdime-$pkgver

python -m installer --destdir="$pkgdir" dist/*.whl
mv "$pkgdir"/usr/etc "$pkgdir"/etc
Expand Down

0 comments on commit c419de3

Please sign in to comment.