summaryrefslogtreecommitdiffstats
path: root/meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb
blob: d55e8cbee9700646bb79d327ad19f71e1f41f35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
SUMMARY = "Open source machine learning framework to automate text- and voice-based conversations"
HOMEPAGE = "https://github.com/RasaHQ/rasa"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=930bc50f846c55c70b79b78055ae3d9b"

PYPI_PACKAGE = "rasa"

SRC_URI += " \
    file://rasa-service.service \
    file://0001-rasa-remove-group-from-poetry-as-its-not-supported.patch \
"
SRC_URI[md5sum] = "7aab346588a3056b54ff783357e4d081"
SRC_URI[sha256sum] = "21e57a99bdec8d9f36f7828985c8e3fb3bf3b2c3c94a856d3006e0a68b41a399"

inherit pypi python_poetry_core systemd

SYSTEMD_SERVICE:${PN} = "rasa-service.service"

RDEPENDS:${PN} += " \
    python3-requests \
    python3-matplotlib \
    python3-absl \
    python3-tqdm \
    python3-numpy \
    python3-pyyaml \
    python3-aiohttp \
    python3-attrs \
    python3-websockets \
    python3-typing-extensions \
    python3-pytz \
    python3-protobuf \
    python3-regex \
    python3-pydot \
    python3-packaging \
    python3-jsonschema \
    python3-networkx \
    python3-ujson \
    python3-dateutil \
    python3-portalocker \
    python3-pluggy \
    python3-pykwalify \
    python3-sentry-sdk \
    python3-pymongo \
    python3-sqlalchemy \
    python3-socketio \
    python3-cachecontrol \
    python3-google-auth \
    tensorflow \
    python3-typing-utils \
    python3-aiogram \
    python3-aio-pika \
    python3-joblib \
    python3-scipy \
    python3-scikit-learn \
    python3-sklearn-crfsuite \
    python3-jsonpickle \
    python3-ruamel.yaml \
    python3-structlog \
    python3-structlog-sentry \
    python3-tarsafe \
    python3-terminaltables \
    python3-sanic \
    python3-sanic-cors \
    python3-sanic-jwt \
    python3-sanic-routing \
    python3-randomname \
    python3-questionary \
    python3-rasa-sdk \
    python3-fbmessenger \
    python3-slack-sdk \
    python3-babel \
    python3-twilio \
    python3-webexteamssdk \
    python3-apscheduler \
    python3-boto3 \
    python3-dask \
"

do_install:append() {
    # Remove README and LICENSE from the site-packages directory as they shouldn't be placed there,
    # it causes conflicts.
    rm -f ${D}${libdir}/python3.10/site-packages/README.md
    rm -f ${D}${libdir}/python3.10/site-packages/LICENSE.txt

    # Initialize our service definition
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        install -d ${D}${systemd_system_unitdir}
        install -m 0644 ${WORKDIR}/rasa-service.service ${D}${systemd_system_unitdir}
    fi
}