anchor.diff:    ] ++ optionals isDarwin [
       "test_locale"
       "test_clipboard"
  -  ]);
  +  ];
   
  -  doCheck = !stdenv.isAarch64; # upstream doesn't test this architecture
  -
  -  checkPhase = ''
  -    runHook preCheck
  +  preCheck = ''
  +    export LC_ALL="en_US.UTF-8"
     ''
     # TODO: Get locale and clipboard support working on darwin.
     #       Until then we disable the tests.
  
positive.code: , glibcLocales
  , hypothesis
  , moto
  , pytest
  # Darwin inputs
  , runtimeShell
  , libcxx ? null
  
negative.code:     xlrd
      xlwt
    ];
  
    checkInputs = [ pytestCheckHook glibcLocales moto hypothesis ];
  
    # doesn't work with -Werror,-Wunused-command-line-argument
    # https://github.com/NixOS/nixpkgs/issues/39687
  