Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
hatch-jupyter-builder,
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
pygments,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab-pygments";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyterlab_pygments";
|
|
inherit version;
|
|
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 = [
|
|
hatch-jupyter-builder
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
# no tests exist on upstream repo
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ pygments ];
|
|
|
|
pythonImportsCheck = [ "jupyterlab_pygments" ];
|
|
|
|
meta = with lib; {
|
|
description = "Jupyterlab syntax coloring theme for pygments";
|
|
homepage = "https://github.com/jupyterlab/jupyterlab_pygments";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|