Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "Provides cryptographic recipes and primitives to Python developers" |
| 2 | LICENSE = "Apache-2.0 | BSD" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4" |
| 4 | DEPENDS += " python-cffi-native python-cffi python-enum34 python-six python-pyasn1" |
| 5 | SRCNAME = "cryptography" |
| 6 | |
| 7 | SRC_URI = "file://run-ptest \ |
| 8 | file://build_fix_openssl_1.0.1g.patch \ |
| 9 | file://Remove_SSLv2_bindings.patch \ |
| 10 | file://Comment_lingering_SSLv2_symbol.patch" |
| 11 | |
| 12 | SRC_URI[md5sum] = "dd06da41535184f48f2c8e8b74dd570f" |
| 13 | SRC_URI[sha256sum] = "059bc6428b1d0e2317f505698602642f1d8dda5b120ec573a59a430d8cb7a32d" |
| 14 | |
| 15 | inherit pypi setuptools |
| 16 | |
| 17 | RDEPENDS_${PN} = "\ |
| 18 | python-pyasn1\ |
| 19 | python-six\ |
| 20 | python-cffi\ |
| 21 | python-enum34\ |
| 22 | python-setuptools\ |
| 23 | python-pycparser\ |
| 24 | python-subprocess\ |
| 25 | python-threading\ |
| 26 | python-numbers\ |
| 27 | python-contextlib\ |
| 28 | python-ipaddress\ |
| 29 | python-pyasn1\ |
| 30 | python-idna\ |
| 31 | " |
| 32 | |
| 33 | RDEPENDS_${PN}-ptest = "\ |
| 34 | ${PN}\ |
| 35 | python-pytest\ |
| 36 | python-pretend\ |
| 37 | python-iso8601\ |
| 38 | python-cryptography-vectors\ |
| 39 | " |
| 40 | |
| 41 | inherit ptest |
| 42 | |
| 43 | do_install_ptest() { |
| 44 | install -d ${D}${PTEST_PATH}/tests |
| 45 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ |
| 46 | install -d ${D}${PTEST_PATH}/tests/hazmat |
| 47 | cp -rf ${S}/tests/hazmat/* ${D}${PTEST_PATH}/tests/hazmat/ |
| 48 | } |
| 49 | |
| 50 | FILES_${PN}-dbg += " \ |
| 51 | ${libdir}/python2.7/site-packages/${SRCNAME}/hazmat/bindings/.debug \ |
| 52 | " |