From a6a80ca903f6470876395496c80ed6c39b0f0bd3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Nov 2023 21:19:53 +0100 Subject: [PATCH] python311Packages.latexify-py: 0.2.0 -> 0.3.1 Diff: google/latexify_py@refs/tags/v0.2.0...v0.3.1 Changelog: https://github.com/google/latexify_py/releases/tag/v0.3.1 --- .../python-modules/latexify-py/default.nix | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/latexify-py/default.nix b/pkgs/development/python-modules/latexify-py/default.nix index f0da746107b0..cecba90e33ea 100644 --- a/pkgs/development/python-modules/latexify-py/default.nix +++ b/pkgs/development/python-modules/latexify-py/default.nix @@ -1,38 +1,50 @@ { lib , buildPythonPackage +, dill , fetchFromGitHub , hatchling -, dill , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "latexify-py"; - version = "0.2.0"; + version = "0.3.1"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "google"; repo = "latexify_py"; rev = "refs/tags/v${version}"; - hash = "sha256-b0/cKMfIONVd6A5AYRyLx/qsFVpUjeAsadQyu/mPYxo="; + hash = "sha256-uWSLs7Dem+cj93RWIincCXzPkjZUwQskpDac/L+fgjQ="; }; - nativeBuildInputs = [ hatchling ]; + nativeBuildInputs = [ + hatchling + ]; - propagatedBuildInputs = [ dill ]; + propagatedBuildInputs = [ + dill + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "latexify" + ]; preCheck = '' cd src ''; - nativeCheckInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "latexify" ]; - meta = with lib; { description = "Generates LaTeX math description from Python functions"; homepage = "https://github.com/google/latexify_py"; + changelog = "https://github.com/google/latexify_py/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ prusnak ]; };