python3Packages.testpath: fix tests on Darwin

This commit is contained in:
Austin Butler 2021-12-04 13:20:57 -08:00
parent 213fb72889
commit a32a76f082

View file

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
@ -17,6 +18,11 @@ buildPythonPackage rec {
pytestCheckHook
];
preCheck = lib.optionalString stdenv.isDarwin ''
# Work around https://github.com/jupyter/testpath/issues/24
export TMPDIR="/tmp"
'';
meta = with lib; {
description = "Test utilities for code working with files and commands";
license = licenses.mit;