1{ 2 lib, 3 buildPythonPackage, 4 dill, 5 fetchFromGitHub, 6 hatchling, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "latexify-py"; 13 version = "0.4.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "google"; 20 repo = "latexify_py"; 21 tag = "v${version}"; 22 hash = "sha256-tyBIOIVRSNrhO1NOD7Zqmiksrvrm42DUY4w1IocVRl4="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ dill ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "latexify" ]; 32 33 preCheck = '' 34 cd src 35 ''; 36 37 meta = with lib; { 38 description = "Generates LaTeX math description from Python functions"; 39 homepage = "https://github.com/google/latexify_py"; 40 changelog = "https://github.com/google/latexify_py/releases/tag/v${version}"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ prusnak ]; 43 }; 44}