python311Packages.jupyterlab-pygments: 0.2.2 -> 0.3.0

This commit is contained in:
natsukium
2023-12-22 20:09:42 +09:00
parent 3143bef3e1
commit 0e7d833005
@@ -1,16 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, pygments, jupyter-packaging }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, hatch-jupyter-builder
, hatch-nodejs-version
, hatchling
, pygments
}:
buildPythonPackage rec {
pname = "jupyterlab_pygments";
version = "0.2.2";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-dAXX/eYIGdkFqfqM6J5M2DDjGM2tIqADD3qQHacFWF0=";
hash = "sha256-chrKTZApJSsRz6nRheW1r01Udyu4By+bcDb0FwBU010=";
};
# jupyterlab is not necessary since we get the source from pypi
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"jupyterlab>=4.0.0,<5",' ""
'';
nativeBuildInputs = [
jupyter-packaging
hatch-jupyter-builder
hatch-nodejs-version
hatchling
];
# no tests exist on upstream repo