nixos-configs/scopedPackages/hass-components/spotifyplus/smartinspect.nix
matt1432 13453f6839
All checks were successful
Discord / discord commits (push) Has been skipped
docs: add meta to all scoped packages
2025-02-18 15:19:08 -05:00

35 lines
858 B
Nix

{
# nix build inputs
lib,
smartinspect-src,
# deps
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"
];
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.
'';
};
}