Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, ziafont 6, pytestCheckHook 7, nbval 8, latex2mathml 9}: 10 11buildPythonPackage rec { 12 pname = "ziamath"; 13 version = "0.7"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "cdelker"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-JuuCDww0EZEHZLxB5oQrWEJpv0szjwe4iXCRGl7OYTA="; 22 }; 23 24 propagatedBuildInputs = [ 25 ziafont 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 nbval 31 latex2mathml 32 ]; 33 34 pytestFlagsArray = [ "--nbval-lax" ]; 35 36 pythonImportsCheck = [ "ziamath" ]; 37 38 meta = with lib; { 39 description = "Render MathML and LaTeX Math to SVG without Latex installation"; 40 homepage = "https://ziamath.readthedocs.io/en/latest/"; 41 changelog = "https://ziamath.readthedocs.io/en/latest/changes.html"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ sfrijters ]; 44 }; 45}