From 4a3d3899416dc2a8d4232a0278777f4e2e73f634 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 10 Nov 2025 11:47:47 +0200 Subject: [PATCH] python312.pkgs.pint: use writableTmpDirAsHomeHook --- pkgs/development/python-modules/pint/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index 250ef8a8200b..3d12f2f7d398 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -21,6 +21,7 @@ numpy, matplotlib, uncertainties, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -60,14 +61,11 @@ buildPythonPackage rec { pytest-subtests pytest-benchmark matplotlib + writableTmpDirAsHomeHook ]; pytestFlags = [ "--benchmark-disable" ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = { changelog = "https://github.com/hgrecco/pint/blob/${version}/CHANGES"; description = "Physical quantities module";