home-assistant: find packages that use extra_require
This commit is contained in:
parent
67b7baa580
commit
cc4fd57df9
@ -683,7 +683,7 @@
|
|||||||
"safe_mode" = ps: with ps; [ aiohttp-cors hass-nabucasa]; # missing inputs: home-assistant-frontend
|
"safe_mode" = ps: with ps; [ aiohttp-cors hass-nabucasa]; # missing inputs: home-assistant-frontend
|
||||||
"saj" = ps: with ps; [ ]; # missing inputs: pysaj
|
"saj" = ps: with ps; [ ]; # missing inputs: pysaj
|
||||||
"salt" = ps: with ps; [ ]; # missing inputs: saltbox
|
"salt" = ps: with ps; [ ]; # missing inputs: saltbox
|
||||||
"samsungtv" = ps: with ps; [ ]; # missing inputs: samsungctl[websocket] samsungtvws[websocket]
|
"samsungtv" = ps: with ps; [ samsungctl samsungtvws];
|
||||||
"satel_integra" = ps: with ps; [ ]; # missing inputs: satel_integra
|
"satel_integra" = ps: with ps; [ ]; # missing inputs: satel_integra
|
||||||
"scene" = ps: with ps; [ ];
|
"scene" = ps: with ps; [ ];
|
||||||
"schluter" = ps: with ps; [ ]; # missing inputs: py-schluter
|
"schluter" = ps: with ps; [ ]; # missing inputs: py-schluter
|
||||||
|
@ -113,6 +113,10 @@ def name_to_attr_path(req: str, packages: Dict[str, Dict[str, str]]) -> Optional
|
|||||||
# instead of python-3.6-python-mpd2 inside Nixpkgs
|
# instead of python-3.6-python-mpd2 inside Nixpkgs
|
||||||
if req.startswith("python-") or req.startswith("python_"):
|
if req.startswith("python-") or req.startswith("python_"):
|
||||||
names.append(req[len("python-") :])
|
names.append(req[len("python-") :])
|
||||||
|
# Add name variant without extra_require, e.g. samsungctl
|
||||||
|
# instead of samsungctl[websocket]
|
||||||
|
if req.endswith("]"):
|
||||||
|
names.append(req[:req.find("[")])
|
||||||
for name in names:
|
for name in names:
|
||||||
# treat "-" and "_" equally
|
# treat "-" and "_" equally
|
||||||
name = re.sub("[-_]", "[-_]", name)
|
name = re.sub("[-_]", "[-_]", name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user