Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Backport of functools.lru_cache from Python 3.3" |
| 2 | HOMEPAGE = "https://github.com/jaraco/backports.functools_lru_cache" |
| 3 | SECTION = "devel/python" |
| 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a33f38bbf47d48c70fe0d40e5f77498e" |
| 6 | |
| 7 | PYPI_PACKAGE = "backports.functools_lru_cache" |
| 8 | |
| 9 | SRC_URI[md5sum] = "103000b21a8e683647e2ce41929f2a9d" |
| 10 | SRC_URI[sha256sum] = "8fde5f188da2d593bd5bc0be98d9abc46c95bb8a9dde93429570192ee6cc2d4a" |
| 11 | |
| 12 | DEPENDS += "${PYTHON_PN}-setuptools-scm-native" |
| 13 | |
Andrew Geissler | d221e03 | 2020-07-10 16:13:21 -0500 | [diff] [blame] | 14 | inherit pypi setuptools3 ptest |
| 15 | |
| 16 | SRC_URI += " \ |
| 17 | file://run-ptest \ |
| 18 | " |
| 19 | |
| 20 | RDEPENDS_${PN}-ptest += " \ |
| 21 | ${PYTHON_PN}-pytest \ |
| 22 | " |
| 23 | |
| 24 | do_install_ptest() { |
| 25 | install -d ${D}${PTEST_PATH}/tests |
| 26 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 27 | } |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | |
| 29 | RDEPENDS_${PN} += "\ |
| 30 | ${PYTHON_PN}-pickle \ |
| 31 | ${PYTHON_PN}-threading \ |
| 32 | " |