From cad01a03cb7b3a641177f061e23509d1269e2c2b Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Fri, 9 Dec 2022 19:32:41 +0100 Subject: py-nbformat: add 5.7.0 and new package py-hatch-nodejs-version (#34361) --- .../packages/py-hatch-nodejs-version/package.py | 18 ++++++++++++++++++ .../repos/builtin/packages/py-nbformat/package.py | 17 +++++++++++------ 2 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 var/spack/repos/builtin/packages/py-hatch-nodejs-version/package.py diff --git a/var/spack/repos/builtin/packages/py-hatch-nodejs-version/package.py b/var/spack/repos/builtin/packages/py-hatch-nodejs-version/package.py new file mode 100644 index 0000000000..270ee72277 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-hatch-nodejs-version/package.py @@ -0,0 +1,18 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyHatchNodejsVersion(PythonPackage): + """Hatch plugin for versioning from a package.json file.""" + + homepage = "https://github.com/agoose77/hatch-nodejs-version" + pypi = "hatch_nodejs_version/hatch_nodejs_version-0.3.1.tar.gz" + + version("0.3.1", sha256="0e55fd713d92c5c1ccfee778efecaa780fd8bcd276d4ca7aff9f6791f6f76d9c") + + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-hatchling@0.21:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-nbformat/package.py b/var/spack/repos/builtin/packages/py-nbformat/package.py index 62037bc0af..6e9206570f 100644 --- a/var/spack/repos/builtin/packages/py-nbformat/package.py +++ b/var/spack/repos/builtin/packages/py-nbformat/package.py @@ -13,6 +13,7 @@ class PyNbformat(PythonPackage): homepage = "https://github.com/jupyter/nbformat" pypi = "nbformat/nbformat-5.0.7.tar.gz" + version("5.7.0", sha256="1d4760c15c1a04269ef5caf375be8b98dd2f696e5eb9e603ec2bf091f9b0d3f3") version("5.4.0", sha256="44ba5ca6acb80c5d5a500f1e5b83ede8cbe364d5a495c4c8cf60aaf1ba656501") version("5.1.3", sha256="b516788ad70771c6250977c1374fcca6edebe6126fd2adb5a69aa5c2356fd1c8") version("5.0.7", sha256="54d4d6354835a936bad7e8182dcd003ca3dc0cedfee5a306090e04854343b340") @@ -24,12 +25,16 @@ class PyNbformat(PythonPackage): depends_on("python@3.7:", when="@5.2:", type=("build", "run")) depends_on("python@3.5:", when="@5:", type=("build", "run")) depends_on("python@2.7:2.8,3.3:", when="@:4", type=("build", "run")) - depends_on("py-setuptools@60:", when="@5.3:", type="build") - depends_on("py-setuptools", type="build") - depends_on("py-ipython-genutils", when="@:5.1", type=("build", "run")) - depends_on("py-traitlets@5.1:", when="@5.4:", type=("build", "run")) - depends_on("py-traitlets@4.1:", type=("build", "run")) + depends_on("py-hatchling@1.5:", when="@5.6:", type="build") + depends_on("py-hatch-nodejs-version", when="@5.6:", type="build") + depends_on("py-setuptools@60:", when="@5.3:5.4", type="build") + depends_on("py-setuptools", when="@:5.4", type="build") + + depends_on("py-fastjsonschema", when="@5.3:", type=("build", "run")) depends_on("py-jsonschema@2.6:", when="@5.3:", type=("build", "run")) depends_on("py-jsonschema@2.4.0:2.4,2.5.1:", type=("build", "run")) depends_on("py-jupyter-core", type=("build", "run")) - depends_on("py-fastjsonschema", when="@5.3:", type=("build", "run")) + depends_on("py-traitlets@5.1:", when="@5.4:", type=("build", "run")) + depends_on("py-traitlets@4.1:", type=("build", "run")) + depends_on("py-importlib-metadata@3.6:", when="@5.7: ^python@:3.7", type=("build", "run")) + depends_on("py-ipython-genutils", when="@:5.1", type=("build", "run")) -- cgit v1.2.3-70-g09d2