3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #237583 from SFrijters/schemdraw-0.17

python3Packages.schemdraw: 0.16 -> 0.17, python3Packages.ziamath: 0.7 -> 0.8.1
This commit is contained in:
Guillaume Girol 2023-06-18 15:26:23 +00:00 committed by GitHub
commit e613749bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "schemdraw";
version = "0.16";
version = "0.17";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "cdelker";
repo = pname;
rev = version;
hash = "sha256-W9sXtYI8gEwQPRo50taEGT6AQG1tdAbeCtX49eHVvFQ=";
hash = "sha256-wa/IeNGZynU/xKwyFwebXcFaruhBFqGWsrZYaIEVa8Q=";
};
propagatedBuildInputs = [

View file

@ -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; {