python3-pycrypto: drop time.clock

The use of time.clock() is deprecated in python 3.8, change to use
time.process_time().

Reference:
https://docs.python.org/3.3/library/time.html#time.clock

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Ming Liu
2020-01-25 15:19:53 +01:00
committed by Khem Raj
parent 680aadb4bf
commit bd85cf0642
2 changed files with 36 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
inherit distutils3
require python-pycrypto.inc
SRC_URI += "file://0001-Replace-time.clock-with-time.process_time.patch"
# We explicitly call distutils_do_install, since we want it to run, but
# *don't* want the autotools install to run, since this package doesn't
# provide a "make install" target.