Files
2026-11-05 06:30:39 +00:00

62 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
selectolax,
pytestCheckHook,
pytest-click,
pytest-timeout,
mkdocs-material,
}:
buildPythonPackage rec {
pname = "mkdocs-glightbox";
version = "0.5.3";
pyproject = true;
src = fetchFromGitHub {
owner = "blueswen";
repo = "mkdocs-glightbox";
tag = "v${version}";
hash = "sha256-1W6CvElPnZ2Sxjf8641G1Rd9gJGEO+OftFmeROdAHvg=";
};
build-system = [
hatchling
];
dependencies = [
selectolax
];
nativeCheckInputs = [
pytestCheckHook
pytest-click
pytest-timeout
mkdocs-material
];
disabledTests = [
# Checks compatible with material privacy plugin, which is currently not packaged in nixpkgs.
"privacy"
];
disabledTestPaths = [
# dont execute benchmarks on hydra
"tests/test_perf.py"
];
pythonImportsCheck = [
"mkdocs_glightbox"
];
meta = {
description = "MkDocs plugin supports image lightbox (zoom effect) with GLightbox";
homepage = "https://github.com/blueswen/mkdocs-glightbox";
changelog = "https://github.com/blueswen/mkdocs-glightbox/blob/v${version}/CHANGELOG";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ marcel ];
};
}