Ticket #68224: py-jupyterlab.Portfile.diff

File py-jupyterlab.Portfile.diff, 3.3 KB (added by johankytt, 12 months ago)
  • py-jupyterlab/Portfile

    old new  
    44PortGroup           python 1.0
    55
    66name                py-jupyterlab
    7 version             3.0.13
     7version             4.0.5
    88revision            0
    99categories-append   devel
    1010license             BSD
    1111supported_archs     noarch
    1212platforms           {darwin any}
    1313
    14 python.versions     37 38 39 310 311
     14python.versions     38 39 310 311
     15python.pep517       yes
     16python.pep517_backend hatch
    1517
    1618maintainers         {stromnov @stromnov} openmaintainer
    1719
     
    2426
    2527homepage            https://jupyter.org/
    2628
    27 checksums           rmd160  60908e7b6ec964f1c9a159f8423837b0297cef7d \
    28                     sha256  6aefaf11251309ffdd66ef20025f5165aeec26d59a83c76e4d02cc8f593bc9dc \
    29                     size    9843200
     29checksums           rmd160  ba5e36f3c20202a3b4dd9e3efe87eed08f9fc561 \
     30                    sha256  de49deb75f9b9aec478ed04754cbefe9c5d22fd796a5783cdc65e212983d3611 \
     31                    size    18235811
    3032
    3133if {${name} ne ${subport}} {
    32     python.pep517       no
    33     depends_build-append \
    34                         port:py${python.version}-jupyter_packaging
    35     depends_lib-append  port:py${python.version}-setuptools \
    36                         port:py${python.version}-ipython \
    37                         port:py${python.version}-packaging \
    38                         port:py${python.version}-tornado \
     34    depends_build-append  port:py${python.version}-hatch_jupyter_builder
     35
     36    depends_lib-append  port:py${python.version}-async-lru \
     37                        port:py${python.version}-ipykernel \
     38                        port:py${python.version}-jinja2 \
    3939                        port:py${python.version}-jupyter_core \
    40                         port:py${python.version}-jupyter_packaging \
    41                         port:py${python.version}-jupyterlab_server \
     40                        port:py${python.version}-jupyter-lsp \
    4241                        port:py${python.version}-jupyter_server \
    43                         port:py${python.version}-nbclassic \
    44                         port:py${python.version}-jinja2
     42                        port:py${python.version}-jupyterlab_server \
     43                        port:py${python.version}-notebook_shim \
     44                        port:py${python.version}-packaging \
     45                        port:py${python.version}-traitlets \
     46                        port:py${python.version}-tornado
    4547
    46     post-patch {
    47         # relax package requirements
    48         reinplace "s|jupyter_packaging~=0.7.3|jupyter_packaging|" ${worksrcpath}/setup.py
    49         reinplace "s|jupyterlab_server~=2.3|jupyterlab_server|" ${worksrcpath}/setup.py
    50         reinplace "s|jupyter_server~=1.4|jupyter_server|" ${worksrcpath}/setup.py
    51         reinplace "s|nbclassic~=0.2|nbclassic|" ${worksrcpath}/setup.py
     48    if {${python.version} < 311} {
     49        depends_lib-append  port:py${python.version}-tomli
    5250    }
    5351
    54     build.args-append   --skip-npm
     52    if {${python.version} < 310} {
     53        depends_lib-append  port:py${python.version}-importlib-metadata
     54    }
    5555
    56     destroot.args-append \
    57                         --skip-npm
     56    if {${python.version} < 39} {
     57        depends_lib-append  port:py${python.version}-importlib-resources
     58    }
    5859}