nixos-configs/legacyPackages/hass-components/spotifyplus/smartinspect.nix
matt1432 41707ac4ae
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): package spotifyplus
2024-09-19 22:16:11 -04: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"
];
}