Package Details: jupyter-nbgrader-git v0.9.1.r1.g2ef44515-2

Git Clone URL: https://aur.archlinux.org/jupyter-nbgrader-git.git (read-only, click to copy)
Package Base: jupyter-nbgrader-git
Description: A system for assigning and grading notebooks
Upstream URL: https://github.com/jupyter/nbgrader
Licenses: BSD
Conflicts: jupyter-nbgrader
Provides: jupyter-nbgrader
Submitter: leuko
Maintainer: leuko
Last Packager: leuko
Votes: 0
Popularity: 0.000000
First Submitted: 2022-05-12 07:43 (UTC)
Last Updated: 2023-10-28 21:05 (UTC)

Latest Comments

leuko commented on 2023-10-28 21:06 (UTC)

gracias lahwaacz, done.

lahwaacz commented on 2023-10-20 17:36 (UTC) (edited on 2023-10-20 17:39 (UTC) by lahwaacz)

Now jupyterlab and python-types-python-dateutil are twice in depends...

leuko commented on 2023-10-19 16:44 (UTC)

Nice catch lahwaacz, done :)

lahwaacz commented on 2023-10-19 15:21 (UTC)

@leuko Are you sure npm should be in depends? As far as I know, it is used only for making the package...

leuko commented on 2023-10-17 11:29 (UTC) (edited on 2023-10-17 12:57 (UTC) by leuko)

Thx lahwaacz for your upstream PR and hints :)

lahwaacz commented on 2023-08-08 14:45 (UTC)

I had to do these changes to build nbgrader that works with Jupyter Notebook 7 and JupyterLab 4:

diff --git a/PKGBUILD b/PKGBUILD
index 350b675..421e159 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _name_wogit=${pkgname%-git}
 _name=${_name_wogit#$_realm-}
 provides=($_name_wogit)
 conflicts=($_name_wogit)
-pkgver=v0.8.1.r14.gd71461ed
+pkgver=v0.9.0a1.r0.gf37eede5
 pkgrel=1
 pkgdesc="A system for assigning and grading notebooks"
 arch=(any)
@@ -21,7 +21,7 @@ depends=(
    python-jsonschema
    python-jupyter_client
    jupyter-server
-   python-jupyterlab_server
+   python-jupyterlab-server
    python-markupsafe
    jupyter-nbclassic  # As of 2022-11-10 <0.4
    jupyter-nbclient
@@ -32,20 +32,43 @@ depends=(
    python-requests
    python-sqlalchemy
    python-traitlets  # As of 2022-11-10 <5.2.0
+   python-debugpy
+   jupyter-lsp
+   python-webcolors
+   python-isoduration
+   python-rfc3986-validator
+   python-rfc3339-validator
+   python-uri-template
+   python-jsonpointer
+   python-fqdn
 )
 makedepends=(
-   jupyterlab-hatch-jupyter-builder
+   python-hatch-jupyter-builder
    python-build
    python-installer
    python-wheel
    git
+   npm
+   yarn
 )
-source=(git+https://github.com/$_realm/$_name)
-md5sums=(SKIP)
+source=(git+https://github.com/$_realm/$_name
+        # patch to restore compatibility with sqlalchemy 1.4: https://github.com/jupyter/nbgrader/pull/1799
+        nbgrader-sqlalchemy-1.4.patch::https://patch-diff.githubusercontent.com/raw/jupyter/nbgrader/pull/1799.patch
+        # patch moving etc/jupyter/jupyter_notebook_config.json to etc/jupyter/jupyter_notebook_config.d/nbgrader.json
+        nbgrader-jupyter_notebook_config.json.patch::https://patch-diff.githubusercontent.com/raw/jupyter/nbgrader/pull/1807.patch)
+md5sums=('SKIP'
+         'a418a81c37c370994779d657f1596d18'
+         '89d8734b2ca94f8d301886198853a6f4')
+
 pkgver() {
    cd $_name
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }
+prepare() {
+   cd $_name
+   patch -Np1 < ../nbgrader-sqlalchemy-1.4.patch
+   patch -Np1 < ../nbgrader-jupyter_notebook_config.json.patch
+}
 build() {
    cd $_name
    python -m build --wheel --no-isolation
@@ -53,5 +76,7 @@ build() {
 package() {
    cd $_name
    python -m installer --destdir="$pkgdir" dist/*.whl
+   mv "$pkgdir/usr/etc" "$pkgdir"
+
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

lahwaacz commented on 2023-07-02 08:32 (UTC)

The jupyterlab-hatch-jupyter-builder dependency should be probably replaced with python-hatch-jupyter-builder.

leuko commented on 2023-06-13 14:53 (UTC)

I did not see the patch for Jlab4! Also thanks for other suggestions @lahwaacz I will take a look! I hope that nbgrader also looks into /etc/jupyter.

lahwaacz commented on 2023-06-13 12:55 (UTC) (edited on 2023-06-13 12:58 (UTC) by lahwaacz)

I noticed the package puts its configs into /usr/etc/jupyter/ instead of /etc/jupyter/. How can this be fixed?

Also, it creates /usr/etc/jupyter/jupyter_notebook_config.json which might conflict with other extensions or the server-specific configuration. A better approach would be to put nbgrader.json into the /etc/jupyter/jupyter_notebook_config.d/ directory.

Oh, and I have switched the source to git+https://github.com/brichet/nbgrader.git#branch=jlab4_nb7 due to Compatibility with Notebook7 and jupyterLab4.