1*169d7bccSPatrick WilliamsSUMMARY = "Yet Another Python Profiler" 2*169d7bccSPatrick WilliamsHOMEPAGE = "https://github.com/sumerc/yappi" 3*169d7bccSPatrick Williams 4*169d7bccSPatrick WilliamsLICENSE = "MIT" 5*169d7bccSPatrick WilliamsLIC_FILES_CHKSUM = "file://LICENSE;md5=71c208c9a4fd864385eb69ad4caa3bee" 6*169d7bccSPatrick Williams 7*169d7bccSPatrick WilliamsSRC_URI[sha256sum] = "a9aaf72009d8c03067294151ee0470ac7a6dfa7b33baab40b198d6c1ef00430a" 8*169d7bccSPatrick Williams 9*169d7bccSPatrick WilliamsSRC_URI += " \ 10*169d7bccSPatrick Williams file://run-ptest \ 11*169d7bccSPatrick Williams file://0001-test_functionality-convert-line-endings-to-Unix.patch \ 12*169d7bccSPatrick Williams file://0002-Fix-import-of-tests.utils-to-enable-pytest.patch \ 13*169d7bccSPatrick Williams" 14*169d7bccSPatrick Williams 15*169d7bccSPatrick Williamsinherit pypi python_setuptools_build_meta ptest 16*169d7bccSPatrick Williams 17*169d7bccSPatrick WilliamsRDEPENDS:${PN} += "\ 18*169d7bccSPatrick Williams python3-datetime \ 19*169d7bccSPatrick Williams python3-pickle \ 20*169d7bccSPatrick Williams python3-threading \ 21*169d7bccSPatrick Williams" 22*169d7bccSPatrick Williams 23*169d7bccSPatrick WilliamsRDEPENDS:${PN}-ptest += " \ 24*169d7bccSPatrick Williams python3-gevent \ 25*169d7bccSPatrick Williams python3-multiprocessing \ 26*169d7bccSPatrick Williams python3-pytest \ 27*169d7bccSPatrick Williams python3-profile \ 28*169d7bccSPatrick Williams python3-unittest-automake-output \ 29*169d7bccSPatrick Williams python3-zopeinterface \ 30*169d7bccSPatrick Williams" 31*169d7bccSPatrick Williams 32*169d7bccSPatrick Williamsdo_install_ptest() { 33*169d7bccSPatrick Williams install -d ${D}${PTEST_PATH}/tests 34*169d7bccSPatrick Williams cp -rf ${S}/tests ${D}${PTEST_PATH} 35*169d7bccSPatrick Williams cp -f ${S}/run_tests.py ${D}${PTEST_PATH} 36*169d7bccSPatrick Williams} 37*169d7bccSPatrick Williams 38