1SUMMARY = "A pure Python netlink and Linux network configuration library"
2LICENSE = "GPL-2.0-only & Apache-2.0"
3LIC_FILES_CHKSUM = "file://LICENSE.GPL.v2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
4                    file://LICENSE.Apache.v2;md5=34281e312165f843a2b7d1f114fe65ce"
5
6SRC_URI[sha256sum] = "45460d12ed2a5caf272a357a3360b36d1e346f17afe1425b66fc21d70f462b29"
7
8inherit setuptools3 pypi ptest
9
10RDEPENDS:${PN} += " \
11    ${PYTHON_PN}-ctypes \
12    ${PYTHON_PN}-distutils \
13    ${PYTHON_PN}-io \
14    ${PYTHON_PN}-json \
15    ${PYTHON_PN}-logging \
16    ${PYTHON_PN}-multiprocessing \
17    ${PYTHON_PN}-pickle \
18    ${PYTHON_PN}-pkgutil \
19    ${PYTHON_PN}-pprint \
20    ${PYTHON_PN}-shell \
21    ${PYTHON_PN}-unixadmin \
22"
23
24SRC_URI += " \
25	file://run-ptest \
26"
27
28RDEPENDS:${PN}-ptest += " \
29	${PYTHON_PN}-pytest \
30	${PYTHON_PN}-fcntl \
31"
32
33do_install_ptest() {
34	install -d ${D}${PTEST_PATH}/tests
35	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
36}
37