git.iko.soy/typeable/nixpkgs
on master help sign in
home-assistant: support requirements specified by url
commit749d280c2cc4e983468f5d40900efcbfd00e0c7e authorPeter Hoeg <peter@hoeg.com> dateThu 5 Apr 2018, 15:34 (9 years ago) parent0433bd1
1 file changed+3
pkgs/servers/home-assistant/parse-requirements.py+3
pkgs/servers/home-assistant/parse-requirements.py+3
@@ -43,6 +43,9 @@ def fetch_reqs(version='master'):
4343 if component not in requirements:
4444 requirements[component] = []
4545 elif line[0] != '#':
46+ # Some requirements are specified by url, e.g. https://example.org/foobar#xyz==1.0.0
47+ # Therefore, if there's a "#" in the line, only take the part after it
48+ line = line[line.find('#') + 1:]
4649 for component in components:
4750 requirements[component].append(line)
4851 return requirements