From 2b5351b24652ec719fddf03755286da85d15fce9 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 19 Mar 2023 13:33:35 +0100 Subject: [PATCH] python3Packages.ziamath: init at 0.7 --- .../python-modules/ziamath/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/ziamath/default.nix diff --git a/pkgs/development/python-modules/ziamath/default.nix b/pkgs/development/python-modules/ziamath/default.nix new file mode 100644 index 000000000000..7a4d2520d87a --- /dev/null +++ b/pkgs/development/python-modules/ziamath/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromBitbucket +, ziafont +, pytestCheckHook +, nbval +, latex2mathml +}: + +buildPythonPackage rec { + pname = "ziamath"; + version = "0.7"; + + disabled = pythonOlder "3.8"; + + src = fetchFromBitbucket { + owner = "cdelker"; + repo = pname; + rev = version; + hash = "sha256-JuuCDww0EZEHZLxB5oQrWEJpv0szjwe4iXCRGl7OYTA="; + }; + + propagatedBuildInputs = [ + ziafont + ]; + + nativeCheckInputs = [ + pytestCheckHook + nbval + latex2mathml + ]; + + pytestFlagsArray = [ "--nbval-lax" ]; + + pythonImportsCheck = [ "ziamath" ]; + + meta = with lib; { + description = "Render MathML and LaTeX Math to SVG without Latex installation"; + homepage = "https://ziamath.readthedocs.io/en/latest/"; + changelog = "https://ziamath.readthedocs.io/en/latest/changes.html"; + license = licenses.mit; + maintainers = with maintainers; [ sfrijters ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0a8a300f6c4b..9876e6c38ffb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12940,6 +12940,8 @@ self: super: with self; { ziafont = callPackage ../development/python-modules/ziafont { }; + ziamath = callPackage ../development/python-modules/ziamath { }; + zict = callPackage ../development/python-modules/zict { }; zigpy = callPackage ../development/python-modules/zigpy { };