summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-calver_2022.6.26.bb
blob: 71b5431400b5045635aec38964860368d09cbd7f (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
SUMMARY = "Setuptools extension for CalVer package versions"
HOMEPAGE = "https://github.com/di/calver"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRC_URI = " \
    git://github.com/di/calver;branch=master;protocol=https \
    file://run-ptest \
    file://0001-setup.py-hard-code-version.patch \
"
SRCREV = "3268d8acf2c345f32a1c5f08ba25dc67f76cca81"

inherit python_setuptools_build_meta ptest

S = "${WORKDIR}/git"

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

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

BBCLASSEXTEND = "native nativesdk"