2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
51 lines
948 B
Nix
51 lines
948 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dill
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "latexify-py";
|
|
version = "0.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "latexify_py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-uWSLs7Dem+cj93RWIincCXzPkjZUwQskpDac/L+fgjQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
dill
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"latexify"
|
|
];
|
|
|
|
preCheck = ''
|
|
cd src
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|