nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 selectolax, 7 pytestCheckHook, 8 pytest-click, 9 pytest-timeout, 10 mkdocs-material, 11}: 12 13buildPythonPackage rec { 14 pname = "mkdocs-glightbox"; 15 version = "0.5.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "blueswen"; 20 repo = "mkdocs-glightbox"; 21 tag = "v${version}"; 22 hash = "sha256-6HkBeZHBLR3HqWh3WjjCqxR85nQuQqq9+7UwbXOZHRk="; 23 }; 24 25 build-system = [ 26 hatchling 27 ]; 28 29 dependencies = [ 30 selectolax 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-click 36 pytest-timeout 37 mkdocs-material 38 ]; 39 40 disabledTests = [ 41 # Checks compatible with material privacy plugin, which is currently not packaged in nixpkgs. 42 "privacy" 43 ]; 44 45 disabledTestPaths = [ 46 # dont execute benchmarks on hydra 47 "tests/test_perf.py" 48 ]; 49 50 pythonImportsCheck = [ 51 "mkdocs_glightbox" 52 ]; 53 54 meta = { 55 description = "MkDocs plugin supports image lightbox (zoom effect) with GLightbox"; 56 homepage = "https://github.com/blueswen/mkdocs-glightbox"; 57 changelog = "https://github.com/blueswen/mkdocs-glightbox/blob/v${version}/CHANGELOG"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ marcel ]; 60 }; 61}