1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5, dill 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "latexify-py"; 11 version = "0.2.0"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "google"; 16 repo = "latexify_py"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-b0/cKMfIONVd6A5AYRyLx/qsFVpUjeAsadQyu/mPYxo="; 19 }; 20 21 nativeBuildInputs = [ hatchling ]; 22 23 propagatedBuildInputs = [ dill ]; 24 25 preCheck = '' 26 cd src 27 ''; 28 29 checkInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "latexify" ]; 32 33 meta = with lib; { 34 description = "Generates LaTeX math description from Python functions"; 35 homepage = "https://github.com/google/latexify_py"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ prusnak ]; 38 }; 39}