Skip to content

Commit

Permalink
Merge pull request #145276 from austinbutler/testpath-fix-socket-error
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Dec 5, 2021
2 parents 6f396b0 + a32a76f commit 1c5c21e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/testpath/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pytestCheckHook
Expand All @@ -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;
Expand Down

0 comments on commit 1c5c21e

Please sign in to comment.