8 buildPythonPackage rec {
11 format = "setuptools";
14 inherit pname version;
15 sha256 = "3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7";
18 __propagatedImpureHostDeps = lib.optional stdenv.hostPlatform.isDarwin "/usr/lib/libc.dylib";
20 patchPhase = lib.optionalString stdenv.hostPlatform.isLinux ''
21 substituteInPlace monotonic.py --replace \
22 "ctypes.util.find_library('c')" "'${stdenv.cc.libc}/lib/libc.so'"
26 description = "Implementation of time.monotonic() for Python 2 & < 3.3";
27 homepage = "https://github.com/atdt/monotonic";
28 license = licenses.asl20;