nixos-configs/scopedPackages/hass-components/spotifyplus/smartinspect.nix

36 lines
858 B
Nix
Raw Normal View History

2024-09-19 22:16:11 -04:00
{
2025-02-18 15:19:08 -05:00
# nix build inputs
lib,
2024-09-19 22:16:11 -04:00
smartinspect-src,
2025-02-18 15:19:08 -05:00
# deps
2024-09-19 22:16:11 -04:00
python3Packages,
...
}: let
inherit (builtins) elemAt head readFile split;
tag = head (split "\"" (elemAt (split "VERSION:str = \"" (readFile "${smartinspect-src}/smartinspectpython/siconst.py")) 2));
in
python3Packages.buildPythonPackage {
pname = "smartinspectPython";
version = "${tag}+${smartinspect-src.shortRev}";
src = smartinspect-src;
propagatedBuildInputs = with python3Packages; [
pycryptodome
watchdog
];
pythonImportsCheck = [
"smartinspectpython"
];
2025-02-18 15:19:08 -05:00
meta = {
license = lib.licenses.bsd2;
homepage = "https://github.com/thlucas1/SmartInspectPython";
description = ''
Provides Python code execution tracing and diagnostics support via the
SmartInspect Console Viewer.
'';
};
2024-09-19 22:16:11 -04:00
}