summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/deepdiff/default.nix
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-11-10 18:55:03 +0000
committerRobert Scott <code@humanleg.org.uk>2021-11-10 18:55:03 +0000
commit5e74077c3fef465c8b4ded7b3c50638f49dc4f3c (patch)
treeb95173ee7bd6c26b0bf9824ec30b6d26e00c5556 /pkgs/development/python-modules/deepdiff/default.nix
parentMerge pull request #145347 from andrevmatos/kde/plasma5_23_3 (diff)
downloadnixpkgs-5e74077c3fef465c8b4ded7b3c50638f49dc4f3c.tar.gz
python3Packages.deepdiff: fix tests on darwin
problems arising from assuming a fixed tmp location
Diffstat (limited to 'pkgs/development/python-modules/deepdiff/default.nix')
-rw-r--r--pkgs/development/python-modules/deepdiff/default.nix5
1 files changed, 5 insertions, 0 deletions
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