Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "Provides cryptographic recipes and primitives to python developers" |
| 2 | LICENSE = "Apache-2.0 | BSD" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d5ede125ed08d4fd14ec44d334bdb388" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 4 | |
| 5 | DEPENDS += " \ |
| 6 | ${PYTHON_PN}-cffi \ |
| 7 | ${PYTHON_PN}-cffi-native \ |
| 8 | ${PYTHON_PN}-pyasn1 \ |
| 9 | ${PYTHON_PN}-six \ |
| 10 | " |
| 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 12 | SRC_URI[md5sum] = "fade66de437392ed1ba6980768626204" |
| 13 | SRC_URI[sha256sum] = "878cb68b3da3d493ffd68f36db11c29deee623671d3287c3f8d685117ffda9a9" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 14 | |
| 15 | RDEPENDS_${PN} += " \ |
| 16 | ${PYTHON_PN}-cffi \ |
| 17 | ${PYTHON_PN}-idna \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 18 | ${PYTHON_PN}-pyasn1 \ |
| 19 | ${PYTHON_PN}-pycparser \ |
| 20 | ${PYTHON_PN}-setuptools \ |
| 21 | ${PYTHON_PN}-six \ |
| 22 | " |
| 23 | |
| 24 | RDEPENDS_${PN}_class-target += " \ |
| 25 | ${PYTHON_PN}-cffi \ |
| 26 | ${PYTHON_PN}-idna \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 27 | ${PYTHON_PN}-numbers \ |
| 28 | ${PYTHON_PN}-pyasn1 \ |
| 29 | ${PYTHON_PN}-pycparser \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 30 | ${PYTHON_PN}-subprocess \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 31 | ${PYTHON_PN}-setuptools \ |
| 32 | ${PYTHON_PN}-six \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 33 | ${PYTHON_PN}-threading \ |
| 34 | " |
| 35 | |
| 36 | RDEPENDS_${PN}-ptest += " \ |
| 37 | ${PN} \ |
| 38 | ${PYTHON_PN}-cryptography-vectors \ |
| 39 | ${PYTHON_PN}-iso8601 \ |
| 40 | ${PYTHON_PN}-pretend \ |
| 41 | ${PYTHON_PN}-pytest \ |
| 42 | " |
| 43 | |
| 44 | inherit ptest |
| 45 | |
| 46 | do_install_ptest() { |
| 47 | install -d ${D}${PTEST_PATH}/tests |
| 48 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 49 | install -d ${D}${PTEST_PATH}/tests/hazmat |
| 50 | cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/ |
| 51 | } |
| 52 | |
| 53 | FILES_${PN}-dbg += " \ |
| 54 | ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \ |
| 55 | " |
| 56 | |
| 57 | BBCLASSEXTEND = "native nativesdk" |