Merge pull request #120281 from mweinelt/home-assistant
home-assistant: find unstable versions in parse-requirements.py
This commit is contained in:
commit
3ab9aaa5cf
@ -18,7 +18,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-slackclient";
|
pname = "slackclient";
|
||||||
version = "2.9.3";
|
version = "2.9.3";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
"blueprint" = ps: with ps; [ ];
|
"blueprint" = ps: with ps; [ ];
|
||||||
"bluesound" = ps: with ps; [ xmltodict ];
|
"bluesound" = ps: with ps; [ xmltodict ];
|
||||||
"bluetooth_le_tracker" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL]
|
"bluetooth_le_tracker" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL]
|
||||||
"bluetooth_tracker" = ps: with ps; [ bt_proximity ]; # missing inputs: pybluez
|
"bluetooth_tracker" = ps: with ps; [ bt_proximity pybluez ];
|
||||||
"bme280" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
|
"bme280" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
|
||||||
"bme680" = ps: with ps; [ bme680 smbus-cffi ];
|
"bme680" = ps: with ps; [ bme680 smbus-cffi ];
|
||||||
"bmp280" = ps: with ps; [ ]; # missing inputs: RPi.GPIO adafruit-circuitpython-bmp280
|
"bmp280" = ps: with ps; [ ]; # missing inputs: RPi.GPIO adafruit-circuitpython-bmp280
|
||||||
@ -750,7 +750,7 @@
|
|||||||
"sky_hub" = ps: with ps; [ ]; # missing inputs: pyskyqhub
|
"sky_hub" = ps: with ps; [ ]; # missing inputs: pyskyqhub
|
||||||
"skybeacon" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL]
|
"skybeacon" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL]
|
||||||
"skybell" = ps: with ps; [ skybellpy ];
|
"skybell" = ps: with ps; [ skybellpy ];
|
||||||
"slack" = ps: with ps; [ ]; # missing inputs: slackclient
|
"slack" = ps: with ps; [ slackclient ];
|
||||||
"sleepiq" = ps: with ps; [ sleepyq ];
|
"sleepiq" = ps: with ps; [ sleepyq ];
|
||||||
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api
|
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api
|
||||||
"sma" = ps: with ps; [ pysma ];
|
"sma" = ps: with ps; [ pysma ];
|
||||||
|
@ -354,6 +354,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"sleepiq"
|
"sleepiq"
|
||||||
"sma"
|
"sma"
|
||||||
"sensor"
|
"sensor"
|
||||||
|
"slack"
|
||||||
"smarttub"
|
"smarttub"
|
||||||
"smtp"
|
"smtp"
|
||||||
"smappee"
|
"smappee"
|
||||||
|
@ -124,7 +124,10 @@ def name_to_attr_path(req: str, packages: Dict[str, Dict[str, str]]) -> Optional
|
|||||||
for name in names:
|
for name in names:
|
||||||
# treat "-" and "_" equally
|
# treat "-" and "_" equally
|
||||||
name = re.sub("[-_]", "[-_]", name)
|
name = re.sub("[-_]", "[-_]", name)
|
||||||
pattern = re.compile("^python\\d\\.\\d-{}-\\d".format(name), re.I)
|
# python(minor).(major)-(pname)-(version or unstable-date)
|
||||||
|
# we need the version qualifier, or we'll have multiple matches
|
||||||
|
# (e.g. pyserial and pyserial-asyncio when looking for pyserial)
|
||||||
|
pattern = re.compile("^python\\d\\.\\d-{}-(?:\\d|unstable-.*)".format(name), re.I)
|
||||||
for attr_path, package in packages.items():
|
for attr_path, package in packages.items():
|
||||||
if pattern.match(package["name"]):
|
if pattern.match(package["name"]):
|
||||||
attr_paths.add(attr_path)
|
attr_paths.add(attr_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user