evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / latexify-py / default.nix
blobe87966e3eeb306d946e37384024611237e836a3e
2   lib,
3   buildPythonPackage,
4   dill,
5   fetchFromGitHub,
6   hatchling,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "latexify-py";
13   version = "0.4.3-post1";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "google";
20     repo = "latexify_py";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-4924pqgc+C8VDTTK5Dac6UJV0tcicVBdnkWvE1ynyvY=";
23   };
25   build-system = [ hatchling ];
27   dependencies = [ dill ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "latexify" ];
33   preCheck = ''
34     cd src
35   '';
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   };