6 buildPythonPackage rec {
11 inherit pname version;
12 sha256 = "23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0";
15 __propagatedImpureHostDeps = lib.optional stdenv.isDarwin "/usr/lib/libc.dylib";
17 patchPhase = lib.optionalString stdenv.isLinux ''
18 substituteInPlace monotonic.py --replace \
19 "ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'"
23 description = "An implementation of time.monotonic() for Python 2 & < 3.3";
24 homepage = "https://github.com/atdt/monotonic";
25 license = licenses.asl20;