python3Packages.pint: 0.18 -> 0.19.2

This commit is contained in:
Martin Weinelt 2022-07-16 12:59:24 +02:00
parent ab0764388d
commit fefa0e1c4e

View File

@ -15,22 +15,21 @@
buildPythonPackage rec {
pname = "pint";
version = "0.18";
version = "0.19.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "Pint";
sha256 = "sha256-jEvOiEwmkFH+t6vGnb/RhAPAx2SryD2hMuinIi+LqAE=";
sha256 = "sha256-4dSYn/UQs3ja1k+RcR572r5cp411sGoYVprEVGeMS68=";
};
disabled = pythonOlder "3.6";
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ packaging ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# Test suite explicitly requires pytest
checkInputs = [
pytestCheckHook
pytest-subtests
@ -38,13 +37,17 @@ buildPythonPackage rec {
matplotlib
uncertainties
];
dontUseSetuptoolsCheck = true;
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Physical quantities module";
license = licenses.bsd3;
homepage = "https://github.com/hgrecco/pint/";
maintainers = with maintainers; [ costrouc doronbehar ];
};
}