build-support/vm: don't depend on the "unix" module (#375355)
[NixPkgs.git] / pkgs / development / python-modules / latexify-py / default.nix
blob68150bc9fb06d05557d4af16e8fa994ff0c0039a
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.4";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "google";
20     repo = "latexify_py";
21     tag = "v${version}";
22     hash = "sha256-tyBIOIVRSNrhO1NOD7Zqmiksrvrm42DUY4w1IocVRl4=";
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   };