Files
Gaetan Lepage 1db2471c33 python3Packages.jupyter-themes: change pname to jupyterthemes to fix metadata check
importlib.metadata.PackageNotFoundError: No package metadata was found
for jupyter-themes
2026-08-30 12:02:32 +00:00

49 lines
965 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
lesscpy,
matplotlib,
notebook,
}:
buildPythonPackage (finalAttrs: {
pname = "jupyterthemes";
version = "0.20.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dunovank";
repo = "jupyter-themes";
tag = "v${finalAttrs.version}";
hash = "sha256-AWbUXMOA6k2LpZtcJOPxTZb1oL5vLDbBq4aEhXWvy9M=";
};
build-system = [ setuptools ];
dependencies = [
lesscpy
matplotlib
notebook
];
pythonImportsCheck = [ "jupyterthemes" ];
# No tests
doCheck = false;
meta = {
description = "Theme-ify your Jupyter Notebooks!";
homepage = "https://github.com/dunovank/jupyter-themes";
changelog = "https://github.com/dunovank/jupyter-themes/blob/${finalAttrs.src.rev}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jherland ];
mainProgram = "jupyter-theme";
};
})