bip-0327/reference.py's self-test reads time.clock_gettime_ns(time.CLOCK_MONOTONIC) for extra_in. Both symbols are documented "Availability: Unix" in CPython, so python3 reference.py raises AttributeError on Windows.
time.monotonic_ns() is the portable monotonic clock CPython documents for measuring elapsed time, available on all platforms since 3.7. It returns the same nanosecond int, so .to_bytes(8, 'big') is unaffected.
Not tested on Windows; verified against CPython's platform-availability docs.