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 | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d5ede125ed08d4fd14ec44d334bdb388" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 5 | |
| 6 | DEPENDS += " \ |
| 7 | ${PYTHON_PN}-cffi \ |
| 8 | ${PYTHON_PN}-cffi-native \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 9 | ${PYTHON_PN}-asn1crypto \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 10 | ${PYTHON_PN}-six \ |
| 11 | " |
| 12 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | SRC_URI[md5sum] = "9f39d4d8f2b05f295fa0ff52475ec4f2" |
| 14 | SRC_URI[sha256sum] = "e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 15 | |
| 16 | RDEPENDS_${PN} += " \ |
| 17 | ${PYTHON_PN}-cffi \ |
| 18 | ${PYTHON_PN}-idna \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 19 | ${PYTHON_PN}-asn1crypto \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 20 | ${PYTHON_PN}-pycparser \ |
| 21 | ${PYTHON_PN}-setuptools \ |
| 22 | ${PYTHON_PN}-six \ |
| 23 | " |
| 24 | |
| 25 | RDEPENDS_${PN}_class-target += " \ |
| 26 | ${PYTHON_PN}-cffi \ |
| 27 | ${PYTHON_PN}-idna \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 28 | ${PYTHON_PN}-numbers \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 29 | ${PYTHON_PN}-asn1crypto \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | ${PYTHON_PN}-pycparser \ |
| 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 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 57 | BBCLASSEXTEND = "native nativesdk" |