diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index 250ef8a8200b..2e19bfbc3ef0 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -5,8 +5,8 @@ pythonOlder, # build-system - setuptools, - setuptools-scm, + hatchling, + hatch-vcs, # dependencies flexcache, @@ -21,11 +21,12 @@ numpy, matplotlib, uncertainties, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "pint"; - version = "0.24.4"; + version = "0.25.2"; pyproject = true; disabled = pythonOlder "3.9"; @@ -34,12 +35,12 @@ buildPythonPackage rec { owner = "hgrecco"; repo = "pint"; tag = version; - hash = "sha256-Pr+BRLj6BjEDwKJ24qxmfiJswpgQJDumAx3rT6tQHSY="; + hash = "sha256-Ushg7e920TTW7AYXg5C076Bl/yWPLO+H8I3Ytlc7OKc="; }; build-system = [ - setuptools - setuptools-scm + hatchling + hatch-vcs ]; dependencies = [ @@ -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";