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 { 2 fetchFromGitHub, 3 - kicad-small, 4 lib, 5 python3Packages, 6 }: 7 8 python3Packages.buildPythonApplication rec { ··· 22 dependencies = [ 23 python3Packages.jsonschema 24 python3Packages.wxpython 25 - kicad-small 26 ]; 27 28 - # has no tests 29 - doCheck = false; 30 31 meta = { 32 description = "Interactive HTML BOM generation for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer";
··· 1 { 2 fetchFromGitHub, 3 lib, 4 + kicad, 5 python3Packages, 6 + xvfb-run, 7 }: 8 9 python3Packages.buildPythonApplication rec { ··· 23 dependencies = [ 24 python3Packages.jsonschema 25 python3Packages.wxpython 26 + python3Packages.kicad 27 ]; 28 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 + ''; 41 42 meta = { 43 description = "Interactive HTML BOM generation for KiCad, EasyEDA, Eagle, Fusion360 and Allegro PCB designer";