Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | SUMMARY = "Provides cryptographic recipes and primitives to python developers" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | HOMEPAGE = "https://cryptography.io/" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 3 | LICENSE = "Apache-2.0 | BSD" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=097f805837700cfac572ac274cd38124" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 5 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 6 | LDSHARED += "-pthread" |
| 7 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 8 | DEPENDS += " \ |
| 9 | ${PYTHON_PN}-cffi \ |
| 10 | ${PYTHON_PN}-cffi-native \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 11 | ${PYTHON_PN}-asn1crypto \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 12 | ${PYTHON_PN}-six \ |
| 13 | " |
| 14 | |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 15 | SRC_URI[md5sum] = "77730058b556c6d9838679a94c6229ce" |
| 16 | SRC_URI[sha256sum] = "3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 17 | |
| 18 | RDEPENDS_${PN} += " \ |
| 19 | ${PYTHON_PN}-cffi \ |
| 20 | ${PYTHON_PN}-idna \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 21 | ${PYTHON_PN}-asn1crypto \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | ${PYTHON_PN}-setuptools \ |
| 23 | ${PYTHON_PN}-six \ |
| 24 | " |
| 25 | |
| 26 | RDEPENDS_${PN}_class-target += " \ |
| 27 | ${PYTHON_PN}-cffi \ |
| 28 | ${PYTHON_PN}-idna \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 29 | ${PYTHON_PN}-numbers \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 30 | ${PYTHON_PN}-asn1crypto \ |
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 \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | ${PYTHON_PN}-pytz \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 43 | " |
| 44 | |
| 45 | inherit ptest |
| 46 | |
| 47 | do_install_ptest() { |
| 48 | install -d ${D}${PTEST_PATH}/tests |
| 49 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 50 | install -d ${D}${PTEST_PATH}/tests/hazmat |
| 51 | cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/ |
| 52 | } |
| 53 | |
| 54 | FILES_${PN}-dbg += " \ |
| 55 | ${libdir}/${PYTHON_PN}2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \ |
| 56 | " |
| 57 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 58 | BBCLASSEXTEND = "native nativesdk" |