diff --git a/pkgs/development/python-modules/ziamath/default.nix b/pkgs/development/python-modules/ziamath/default.nix index b9dd7224d41a96..5e24f3c4167076 100644 --- a/pkgs/development/python-modules/ziamath/default.nix +++ b/pkgs/development/python-modules/ziamath/default.nix @@ -10,7 +10,8 @@ buildPythonPackage rec { pname = "ziamath"; - version = "0.7"; + version = "0.8.1"; + format = "pyproject"; disabled = pythonOlder "3.8"; @@ -18,7 +19,7 @@ buildPythonPackage rec { owner = "cdelker"; repo = pname; rev = version; - hash = "sha256-JuuCDww0EZEHZLxB5oQrWEJpv0szjwe4iXCRGl7OYTA="; + hash = "sha256-Bbwq4Ods3P/724KO94jSmMLD1ubfaMHP/gTlOL/2pnE="; }; propagatedBuildInputs = [ @@ -33,6 +34,13 @@ buildPythonPackage rec { pytestFlagsArray = [ "--nbval-lax" ]; + # Prevent the test suite from attempting to download fonts + postPatch = '' + substituteInPlace test/styles.ipynb \ + --replace '"def testfont(exprs, fonturl):\n",' '"def testfont(exprs, fonturl):\n", " return\n",' \ + --replace "mathfont='FiraMath-Regular.otf', " "" + ''; + pythonImportsCheck = [ "ziamath" ]; meta = with lib; {