From 5e74077c3fef465c8b4ded7b3c50638f49dc4f3c Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 10 Nov 2021 18:55:03 +0000 Subject: [PATCH] python3Packages.deepdiff: fix tests on darwin problems arising from assuming a fixed tmp location --- pkgs/development/python-modules/deepdiff/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/deepdiff/default.nix b/pkgs/development/python-modules/deepdiff/default.nix index 199894f13201..67f5347e1e7e 100644 --- a/pkgs/development/python-modules/deepdiff/default.nix +++ b/pkgs/development/python-modules/deepdiff/default.nix @@ -23,6 +23,11 @@ buildPythonPackage rec { sha256 = "sha256-ysaIeVefsTX7ZubOXaEzeS1kMyBp4/w3SHNFxsGVhzY="; }; + postPatch = '' + substituteInPlace tests/test_command.py \ + --replace '/tmp/' "$TMPDIR/" + ''; + propagatedBuildInputs = [ click ordered-set