Files
nixpkgs/pkgs/development/python-modules/jupyterlab-pygments/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

48 lines
996 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-jupyter-builder,
hatch-nodejs-version,
hatchling,
pygments,
}:
buildPythonPackage rec {
pname = "jupyterlab-pygments";
version = "0.3.0";
pyproject = true;
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 = {
description = "Jupyterlab syntax coloring theme for pygments";
homepage = "https://github.com/jupyterlab/jupyterlab_pygments";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}