@@ -113,6 +113,10 @@ def name_to_attr_path(req: str, packages: Dict[str, Dict[str, str]]) -> Optional
113113 # instead of python-3.6-python-mpd2 inside Nixpkgs
114114 if req.startswith("python-") or req.startswith("python_"):
115115 names.append(req[len("python-") :])
116+ # Add name variant without extra_require, e.g. samsungctl
117+ # instead of samsungctl[websocket]
118+ if req.endswith("]"):
119+ names.append(req[:req.find("[")])
116120 for name in names:
117121 # treat "-" and "_" equally
118122 name = re.sub("[-_]", "[-_]", name)