11 buildPythonPackage rec {
12 pname = "time-machine";
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
22 sha256 = "sha256-EFlvO9QlOP351kZAFQ+hwghL+7m+Cin/OyLV3NX+y8E=";
25 propagatedBuildInputs = [
27 ] ++ lib.optionals (pythonOlder "3.9") [
35 disabledTests = lib.optionals (pythonAtLeast "3.9") [
36 # Assertion Errors related to Africa/Addis_Ababa
37 "test_destination_datetime_tzinfo_zoneinfo_nested"
38 "test_destination_datetime_tzinfo_zoneinfo_no_orig_tz"
39 "test_destination_datetime_tzinfo_zoneinfo"
40 "test_move_to_datetime_with_tzinfo_zoneinfo"
43 pythonImportsCheck = [
48 description = "Travel through time in your tests";
49 homepage = "https://github.com/adamchainz/time-machine";
50 license = licenses.mit;
51 maintainers = with maintainers; [ fab ];