nixos-configs/scopedPackages/hass-components/spotifyplus/smartinspect.nix
matt1432 838df34dfb
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename legacyPackages to scopedPackages
2024-11-20 15:17:55 -05:00

23 lines
549 B
Nix

{
smartinspect-src,
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"
];
}