blob: 5baa70cc59be3485152fbbbd4b22683c9cbdb4bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
selectolax,
pytestCheckHook,
pytest-click,
pytest-timeout,
mkdocs-material,
}:
buildPythonPackage rec {
pname = "mkdocs-glightbox";
version = "0.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "blueswen";
repo = "mkdocs-glightbox";
tag = "v${version}";
hash = "sha256-6HkBeZHBLR3HqWh3WjjCqxR85nQuQqq9+7UwbXOZHRk=";
};
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 ];
};
}
|