summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
blob: d1d294a2840cd08aef7ce5ea04c167bcdf184770 (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
SUMMARY = "Dasbus is a DBus library written in Python 3, based on GLib and inspired by pydbus."
HOMEPAGE = "https://dasbus.readthedocs.io"
SECTION = "devel"
LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742"

SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \
           file://run-ptest \
"
SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5"

S = "${WORKDIR}/git"

inherit setuptools3 ptest

do_install_ptest() {
    install -d ${D}${PTEST_PATH}/tests
    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/

    # Remove the problematic cases
    # https://github.com/dasbus-project/dasbus/issues/128
    rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py
    rm -rf ${D}${PTEST_PATH}/tests/test_dbus.py
    rm -rf ${D}${PTEST_PATH}/tests/test_unix.py
}

RDEPENDS:${PN} = "python3-pygobject"

RDEPENDS:${PN}-ptest += " \
    python3-pytest \
    python3-unittest-automake-output \
"