Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / latexify-py / default.nix
blobcecba90e33ea54fb85619f93ab7fb7f70ad29fba
1 { lib
2 , buildPythonPackage
3 , dill
4 , fetchFromGitHub
5 , hatchling
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "latexify-py";
12   version = "0.3.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "google";
19     repo = "latexify_py";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-uWSLs7Dem+cj93RWIincCXzPkjZUwQskpDac/L+fgjQ=";
22   };
24   nativeBuildInputs = [
25     hatchling
26   ];
28   propagatedBuildInputs = [
29     dill
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "latexify"
38   ];
40   preCheck = ''
41     cd src
42   '';
44   meta = with lib; {
45     description = "Generates LaTeX math description from Python functions";
46     homepage = "https://github.com/google/latexify_py";
47     changelog = "https://github.com/google/latexify_py/releases/tag/v${version}";
48     license = licenses.asl20;
49     maintainers = with maintainers; [ prusnak ];
50   };