mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
python3Packages.ziamath: 0.7 -> 0.8.1
This commit is contained in:
parent
500c93fbfc
commit
955049971d
@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ziamath";
|
pname = "ziamath";
|
||||||
version = "0.7";
|
version = "0.8.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
owner = "cdelker";
|
owner = "cdelker";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-JuuCDww0EZEHZLxB5oQrWEJpv0szjwe4iXCRGl7OYTA=";
|
hash = "sha256-Bbwq4Ods3P/724KO94jSmMLD1ubfaMHP/gTlOL/2pnE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -33,6 +34,13 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
pytestFlagsArray = [ "--nbval-lax" ];
|
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" ];
|
pythonImportsCheck = [ "ziamath" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user