diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-04-05 15:34:32 +0800 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-04-05 10:16:16 +0200 |
commit | 749d280c2cc4e983468f5d40900efcbfd00e0c7e (patch) | |
tree | ebdbdf091c80f0e24181146b0961ec0af03c93cd | |
parent | 0433bd1aac7d5bfbd4df02c5f99cb3cf9fed9bf3 (diff) | |
download | nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar.gz nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar.bz2 nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar.lz nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar.xz nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.tar.zst nixlib-749d280c2cc4e983468f5d40900efcbfd00e0c7e.zip |
home-assistant: support requirements specified by url
-rwxr-xr-x | pkgs/servers/home-assistant/parse-requirements.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py index 3aa9823dbe8b..791b8c039805 100755 --- a/pkgs/servers/home-assistant/parse-requirements.py +++ b/pkgs/servers/home-assistant/parse-requirements.py @@ -43,6 +43,9 @@ def fetch_reqs(version='master'): if component not in requirements: requirements[component] = [] elif line[0] != '#': + # Some requirements are specified by url, e.g. https://example.org/foobar#xyz==1.0.0 + # Therefore, if there's a "#" in the line, only take the part after it + line = line[line.find('#') + 1:] for component in components: requirements[component].append(line) return requirements |