interactive-html-bom: fix kicad dependency and add test (#388321)

authored by Sandro and committed by GitHub 37acb94c 49914bd0

+15 -4
+15 -4
pkgs/by-name/in/interactive-html-bom/package.nix
··· 1 1 { 2 2 fetchFromGitHub, 3 - kicad-small, 4 3 lib, 4 + kicad, 5 5 python3Packages, 6 + xvfb-run, 6 7 }: 7 8 8 9 python3Packages.buildPythonApplication rec { ··· 22 23 dependencies = [ 23 24 python3Packages.jsonschema 24 25 python3Packages.wxpython 25 - kicad-small 26 + python3Packages.kicad 26 27 ]; 27 28 28 - # has no tests 29 - doCheck = false; 29 + nativeCheckInputs = [ 30 + xvfb-run 31 + ]; 32 + 33 + checkPhase = '' 34 + runHook preCheck 35 + 36 + cp ${kicad.base}/share/kicad/demos/stickhub/StickHub.kicad_pcb . 37 + HOME=$(mktemp -d) xvfb-run $out/bin/generate_interactive_bom --no-browser StickHub.kicad_pcb 38 + 39 + runHook postCheck 40 + ''; 30 41 31 42 meta = { 32 43 description = "Interactive HTML BOM generation for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer";