Skip to content

Commit

Permalink
python3Packages.ziamath: 0.7 -> 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Jun 13, 2023
1 parent 500c93f commit 9550499
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/ziamath/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@

buildPythonPackage rec {
pname = "ziamath";
version = "0.7";
version = "0.8.1";
format = "pyproject";

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "cdelker";
repo = pname;
rev = version;
hash = "sha256-JuuCDww0EZEHZLxB5oQrWEJpv0szjwe4iXCRGl7OYTA=";
hash = "sha256-Bbwq4Ods3P/724KO94jSmMLD1ubfaMHP/gTlOL/2pnE=";
};

propagatedBuildInputs = [
Expand All @@ -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; {
Expand Down

0 comments on commit 9550499

Please sign in to comment.