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 ]; };