[#316] Added RPM dependencies.

This commit is contained in:
Fabio Manganiello 2023-09-21 23:20:06 +02:00
parent 453b6becae
commit 761f2768cb
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
72 changed files with 267 additions and 148 deletions

View file

@ -25,6 +25,9 @@ manifest:
apt:
- python3-grpcio
- python3-google-auth
dnf:
- python-grpcio
- python-google-auth
pacman:
- python-grpcio
- python-google-auth

View file

@ -4,6 +4,9 @@ manifest:
apk:
- py3-numpy
- py3-pillow
dnf:
- python-numpy
- python-pillow
pacman:
- python-numpy
- python-pillow

View file

@ -8,6 +8,8 @@ manifest:
- py3-watchdog
apt:
- python3-watchdog
dnf:
- python-watchdog
pacman:
- python-watchdog
pip:

View file

@ -10,6 +10,8 @@ manifest:
- gpsd
apt:
- gpsd
dnf:
- gpsd
pacman:
- gpsd
pip:

View file

@ -13,6 +13,8 @@ manifest:
- py3-inotify
apt:
- python3-inotify
dnf:
- python-inotify
pip:
- inotify
package: platypush.backend.inotify

View file

@ -17,6 +17,8 @@ manifest:
- linuxconsoletools
apt:
- joystick
dnf:
- joystick
pacman:
- joyutils
package: platypush.backend.joystick.jstest

View file

@ -3,6 +3,8 @@ manifest:
install:
apt:
- python3-kafka
dnf:
- python-kafka
pip:
- kafka
package: platypush.backend.kafka

View file

@ -6,6 +6,8 @@ manifest:
- py3-watchdog
apt:
- python3-watchdog
dnf:
- python-watchdog
pacman:
- python-watchdog
pip:

View file

@ -4,6 +4,8 @@ manifest:
install:
apt:
- python3-rtmidi
dnf:
- python-rtmidi
pacman:
- rtmidi
- python-rtmidi

View file

@ -5,6 +5,8 @@ manifest:
install:
apk:
- py3-paho-mqtt
dnf:
- python-paho-mqtt
pacman:
- python-paho-mqtt
apt:

View file

@ -12,6 +12,8 @@ manifest:
install:
apt:
- python3-mpd2
dnf:
- python-mpd2
pacman:
- python-mpd2
pip:

View file

@ -15,6 +15,9 @@ manifest:
apt:
- sudo
- cargo
dnf:
- sudo
- cargo
pacman:
- sudo
- cargo

View file

@ -5,6 +5,8 @@ manifest:
- git
apt:
- git
dnf:
- git
pacman:
- git
install:

View file

@ -5,10 +5,12 @@ manifest:
install:
apk:
- py3-pyscard
pacman:
- python-pyscard
apt:
- python3-pyscard
dnf:
- python-pyscard
pacman:
- python-pyscard
pip:
- pyscard
package: platypush.backend.scard

View file

@ -3,6 +3,11 @@ manifest:
platypush.message.event.wiimote.WiimoteEvent: when the state of the Wiimote (battery,
buttons, acceleration etc.) changes
install:
pip: []
apt:
- libcwiid1
pacman:
- cwiid-git
pip:
- cwiid
package: platypush.backend.wiimote
type: backend

View file

@ -16,6 +16,8 @@ manifest:
install:
apk:
- py3-paho-mqtt
dnf:
- python-paho-mqtt
pacman:
- python-paho-mqtt
apt:

View file

@ -0,0 +1,26 @@
python
python-pip
python-alembic
python-bcrypt
python-dateutil
python-docutils
python-flask
python-frozendict
python-greenlet
python-magic
python-marshmallow
python-mypy_extensions
python-psutil
python-pytz
python-redis
python-requests
python-rsa
python-sqlalchemy
python-tornado
python-websocket-client
python-websockets
python-wheel
python-yaml
python-zeroconf
redis
sudo

View file

@ -1,26 +0,0 @@
from datetime import datetime
from typing import Optional
from platypush.message.event import Event
class Covid19UpdateEvent(Event):
def __init__(self,
confirmed: int,
deaths: int,
recovered: int,
country: Optional[str] = None,
country_code: Optional[str] = None,
update_time: Optional[datetime] = None,
*args, **kwargs):
super().__init__(*args,
confirmed=confirmed,
deaths=deaths,
recovered=recovered,
country=country,
country_code=country_code,
update_time=update_time,
**kwargs)
# vim:sw=4:ts=4:et:

View file

@ -13,6 +13,9 @@ manifest:
apt:
- python3-tenacity
- python3-google-auth
dnf:
- python-tenacity
- python-google-auth
pacman:
- python-tenacity
- python-google-auth

View file

@ -20,6 +20,9 @@ manifest:
- libbluetooth-dev
- python3-pydbus
- git
dnf:
- python-pydbus
- git
pacman:
- python-pydbus
- python-bleak

View file

@ -5,6 +5,8 @@ manifest:
- py3-icalendar
apt:
- python3-icalendar
dnf:
- python-icalendar
pacman:
- python-icalendar
pip:

View file

@ -5,14 +5,18 @@ manifest:
- py3-numpy
- py3-pillow
- py3-opencv
pacman:
- python-numpy
- python-pillow
- python-opencv
apt:
- python3-numpy
- python3-pillow
- python3-opencv
dnf:
- python-numpy
- python-pillow
- python-opencv
pacman:
- python-numpy
- python-pillow
- python-opencv
pip:
- numpy
- opencv-python

View file

@ -5,14 +5,18 @@ manifest:
- py3-numpy
- py3-pillow
- ffmpeg
pacman:
- python-numpy
- python-pillow
- ffmpeg
apt:
- python3-numpy
- python3-pillow
- ffmpeg
dnf:
- python-numpy
- python-pillow
- ffmpeg
pacman:
- python-numpy
- python-pillow
- ffmpeg
pip:
- numpy
- Pillow

View file

@ -6,16 +6,21 @@ manifest:
- py3-pillow
- py3-gobject3
- py3-gst
pacman:
- python-numpy
- python-pillow
- gst-python
- python-gobject
apt:
- python3-numpy
- python3-pillow
- python3-gi
- python3-gst-1.0
dnf:
- python-numpy
- python-pillow
- python-gstreamer1
- python-gobject
pacman:
- python-numpy
- python-pillow
- gst-python
- python-gobject
pip:
- numpy
- Pillow

View file

@ -5,14 +5,18 @@ manifest:
- i2c-tools-dev
- py3-numpy
- py3-pillow
pacman:
- i2c-tools
- python-numpy
- python-pillow
apt:
- libi2c-dev
- python3-numpy
- python3-pillow
dnf:
- i2c-tools
- python-numpy
- python-pillow
pacman:
- i2c-tools
- python-numpy
- python-pillow
pip:
- numpy
- Pillow

View file

@ -4,12 +4,15 @@ manifest:
apk:
- py3-numpy
- py3-pillow
pacman:
- python-numpy
- python-pillow
apt:
- python3-numpy
- python3-pillow
dnf:
- python-numpy
- python-pillow
pacman:
- python-numpy
- python-pillow
pip:
- picamera
- numpy

View file

@ -23,6 +23,8 @@ manifest:
install:
apt:
- python3-irc
dnf:
- python-irc
pacman:
- python-irc
pip:

View file

@ -4,6 +4,10 @@ manifest:
install:
apk:
- py3-pyclip
dnf:
- python-pyclip
pacman:
- python-pyclip
pip:
- pyclip
package: platypush.plugins.clipboard

View file

@ -1,72 +0,0 @@
from typing import Optional, Union, List, Dict, Any
import requests
from platypush.plugins import Plugin, action
class Covid19Plugin(Plugin):
"""
Monitor the diffusion data of the COVID-19 pandemic by using the public API at https://api.covid19api.com.
"""
base_url = 'https://api.covid19api.com'
def __init__(self, country: Union[str, List[str]] = 'world', **kwargs):
"""
:param country: Default country (or list of countries) to retrieve the stats for. It can either be the full
country name or the country code. Special values:
- ``world``: Get worldwide stats (default).
- ``all``: Get all the available stats.
"""
super().__init__(**kwargs)
self.country = []
self.all_countries = requests.get('{}/countries'.format(self.base_url)).json()
self.country = self._get_countries(country)
def _get_countries(self, country: Optional[Union[str, List[str]]] = None) -> List[str]:
country = country or self.country
if isinstance(country, str):
country = country.split(',')
lc_country = {c.lower() for c in country}
return [c['ISO2'] for c in self.all_countries
if c['ISO2'].lower() in lc_country
or c['Slug'].lower() in lc_country
or c['Country'].lower() in lc_country]
@action
def summary(self, country: Optional[Union[str, List[str]]] = None) -> List[Dict[str, Any]]:
"""
Get the summary data for the world or a country.
:param country: Default country override.
"""
countries = self._get_countries(country)
response = requests.get('{}/summary'.format(self.base_url)).json()
if countries[0] == 'all':
return response.get('Countries', [])
if countries[0] == 'world':
return response.get('Global', {})
return [
c for c in response.get('Countries', [])
if c.get('CountryCode').upper() in countries
or c.get('Country').upper() in countries
]
@action
def data(self, country: Optional[Union[str, List[str]]] = None) -> List[Dict[str, Any]]:
"""
Get all the data for a country.
:param country: Default country override.
"""
countries = self._get_countries(country)
ret = []
for country in countries:
ret += requests.get('{}/total/country/{}'.format(self.base_url, country)).json()
return ret
# vim:sw=4:ts=4:et:

View file

@ -1,6 +0,0 @@
manifest:
events: {}
install:
pip: []
package: platypush.plugins.covid19
type: plugin

View file

@ -8,6 +8,9 @@ manifest:
apt:
- python3-pydbus
- python3-defusedxml
dnf:
- python-pydbus
- python-defusedxml
pacman:
- python-pydbus
- python-defusedxml

View file

@ -3,6 +3,8 @@ manifest:
install:
apt:
- python3-dropbox
dnf:
- python-dropbox
pacman:
- python-dropbox
pip:

View file

@ -5,6 +5,8 @@ manifest:
- ffmpeg
apt:
- ffmpeg
dnf:
- ffmpeg
pacman:
- ffmpeg
- python-ffmpeg

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -8,6 +8,10 @@ manifest:
apt:
- python3-google-auth
- python3-oauth2client
dnf:
- python-google-api-client
- python-google-auth
- python-oauth2client
pacman:
- python-google-api-python-client
- python-google-auth

View file

@ -4,8 +4,12 @@ manifest:
platypush.message.event.hid.HidDeviceDisconnectedEvent: when a previously available device is disconnected
platypush.message.event.hid.HidDeviceDataEvent: when a monitored device sends some data
install:
apk:
- python3-hidapi
apt:
- python3-hid
dnf:
- python-hidapi
pacman:
- python-hid
pip:

View file

@ -1,7 +1,15 @@
manifest:
events: {}
install:
apk:
- py3-feedparser
apt:
- python3-feedparser
dnf:
- python-feedparser
pacman:
- python-feedparser
pip:
- feedparser
- feedparser
package: platypush.plugins.http.request.rss
type: plugin

View file

@ -9,6 +9,10 @@ manifest:
- sudo
- nodejs
- npm
dnf:
- sudo
- nodejs
- npm
pacman:
- sudo
- nodejs

View file

@ -3,7 +3,11 @@ manifest:
platypush.message.event.kafka.KafkaMessageEvent: when a new message is received
on the consumer topic.
install:
apt:
- python-kafka
dnf:
- python-kafka
pip:
- kafka
- kafka
package: platypush.plugins.kafka
type: plugin

View file

@ -5,6 +5,8 @@ manifest:
- py3-pylast
apt:
- python3-pylast
dnf:
- python-pylast
pacman:
- python-pylast
pip:

View file

@ -43,6 +43,10 @@ manifest:
- olm-dev
apt:
- libolm-devel
- python3-async-lru
dnf:
- libolm-devel
- python-async-lru
pacman:
- libolm
- python-async-lru

View file

@ -5,6 +5,8 @@ manifest:
- py3-pychromecast
apt:
- python3-pychromecast
dnf:
- python-chromecast
pip:
- pychromecast
package: platypush.plugins.media.chromecast

View file

@ -7,6 +7,9 @@ manifest:
apt:
- python3-gi
- python3-gst-1.0
dnf:
- python-gstreamer1
- python-gobject
pacman:
- gst-python
- python-gobject

View file

@ -5,6 +5,8 @@ manifest:
- mplayer
apt:
- mplayer
dnf:
- mplayer
pacman:
- mplayer
package: platypush.plugins.media.mplayer

View file

@ -7,6 +7,8 @@ manifest:
apt:
- mpv
- python3-mpv
dnf:
- mpv
pacman:
- mpv
- python-mpv

View file

@ -7,6 +7,9 @@ manifest:
apt:
- vlc
- python3-vlc
dnf:
- vlc
- python3-vlc
pacman:
- vlc
pip:

View file

@ -3,6 +3,8 @@ manifest:
install:
apt:
- python3-rtmidi
dnf:
- python-rtmidi
pacman:
- python-rtmidi
pip:

View file

@ -4,12 +4,15 @@ manifest:
apk:
- py3-numpy
- py3-opencv
pacman:
- python-numpy
- python-opencv
apt:
- python3-numpy
- python3-opencv
dnf:
- python-numpy
- python-opencv
pacman:
- python-numpy
- python-opencv
pip:
- numpy
- opencv-python

View file

@ -4,10 +4,12 @@ manifest:
install:
apk:
- py3-paho-mqtt
pacman:
- python-paho-mqtt
apt:
- python3-paho-mqtt
dnf:
- python-paho-mqtt
pacman:
- python-paho-mqtt
pip:
- paho-mqtt
package: platypush.plugins.mqtt

View file

@ -3,6 +3,8 @@ manifest:
install:
apt:
- python3-mpd
dnf:
- python3-mpd2
pacman:
- python-mpd2
pip:

View file

@ -5,6 +5,8 @@ manifest:
- py3-otp
apt:
- python3-pyotp
dnf:
- python-pyotp
pacman:
- python-pyotp
pip:

View file

@ -6,6 +6,8 @@ manifest:
apt:
- libcups2-dev
- python3-cups
dnf:
- python-cups
pacman:
- python-pycups
pip:

View file

@ -6,16 +6,21 @@ manifest:
- py3-pillow
- py3-qrcode
- py3-pyzbar
pacman:
- python-numpy
- python-pillow
- python-qrcode
- pyzbar
apt:
- python3-numpy
- python3-pillow
- python3-pyzbar
- python3-qrcode
dnf:
- python-numpy
- python-pillow
- python-qrcode
- python-zbar
pacman:
- python-numpy
- python-pillow
- python-qrcode
- pyzbar
pip:
- numpy
- qrcode

View file

@ -8,6 +8,9 @@ manifest:
apt:
- python3-feedparser
- python3-defusedxml
dnf:
- python-feedparser
- python-defusedxml
pacman:
- python-feedparser
- python-defusedxml

View file

@ -19,6 +19,8 @@ manifest:
- rtorrent
apt:
- rtorrent
dnf:
- rtorrent
pacman:
- rtorrent
package: platypush.plugins.rtorrent

View file

@ -6,6 +6,8 @@ manifest:
- py3-pyserial
apt:
- python3-serial
dnf:
- python-pyserial
pacman:
- python-pyserial
pip:

View file

@ -17,6 +17,10 @@ manifest:
- ffmpeg
- portaudio19-dev
- python3-numpy
dnf:
- ffmpeg
- portaudio-devel
- python-numpy
pacman:
- ffmpeg
- portaudio

View file

@ -5,6 +5,8 @@ manifest:
- py3-paramiko
apt:
- python3-paramiko
dnf:
- python-paramiko
pacman:
- python-paramiko
pip:

View file

@ -8,6 +8,8 @@ manifest:
- python-sounddevice
apt:
- python3-numpy
dnf:
- python-numpy
pip:
- deepspeech
- numpy

View file

@ -5,6 +5,8 @@ manifest:
- py3-py-cpuinfo
apt:
- python3-cpuinfo
dnf:
- python-cpuinfo
pacman:
- python-py-cpuinfo
pip:

View file

@ -16,14 +16,17 @@ manifest:
apk:
- py3-numpy
- py3-pandas
apt:
- python3-numpy
- python3-pandas
dnf:
- python3-numpy
- python3-pandas
pacman:
- python-numpy
- python-pandas
- python-tensorflow
- python-keras
apt:
- python3-numpy
- python3-pandas
pip:
- numpy
- pandas

View file

@ -5,6 +5,8 @@ manifest:
- py3-libtorrent-rasterbar
apt:
- python3-libtorrent
dnf:
- rb_libtorrent-python3
pacman:
- libtorrent-rasterbar
pip:

View file

@ -3,6 +3,8 @@ manifest:
install:
apt:
- python3-twilio
dnf:
- python-twilio
pip:
- twilio
package: platypush.plugins.twilio

View file

@ -34,6 +34,8 @@ manifest:
apt:
- python3-aioxmpp
- python3-tz
dnf:
- python-pytz
pacman:
- python-pytz
pip:

View file

@ -41,10 +41,12 @@ manifest:
install:
apk:
- py3-paho-mqtt
pacman:
- python-paho-mqtt
apt:
- python3-paho-mqtt
dnf:
- python-paho-mqtt
pacman:
- python-paho-mqtt
pip:
- paho-mqtt
package: platypush.plugins.zigbee.mqtt

View file

@ -17,12 +17,14 @@ manifest:
platypush.message.event.zwave.ZwaveValueChangedEvent: >
when the value of a node on the network changes.
install:
apk:
- py3-paho-mqtt
pacman:
- python-paho-mqtt
apt:
- python3-paho-mqtt
apk:
- py3-paho-mqtt
dnf:
- python-paho-mqtt
pacman:
- python-paho-mqtt
pip:
- paho-mqtt
package: platypush.plugins.zwave.mqtt