biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / diffenator2 / default.nix
blobe5297364fc183b2d03e0f804615a6c3b26a145cc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonRelaxDepsHook,
6   pytestCheckHook,
7   poetry-core,
8   poetry-dynamic-versioning,
9   blackrenderer,
10   fonttools,
11   freetype-py,
12   gflanguages,
13   glyphsets,
14   jinja2,
15   ninja,
16   pillow,
17   protobuf,
18   pyahocorasick,
19   python-bidi,
20   selenium,
21   tqdm,
22   uharfbuzz,
23   unicodedata2,
24   youseedee,
25   numpy,
28 buildPythonPackage rec {
29   pname = "diffenator2";
30   version = "0.4.3";
31   pyproject = true;
33   src = fetchFromGitHub {
34     owner = "googlefonts";
35     repo = "diffenator2";
36     rev = "refs/tags/v${version}";
37     hash = "sha256-zeNcNR14ieY6Inp4kOwIPXd6S+/wFdMFp6wbiqgB/iA=";
38   };
40   nativeBuildInputs = [ pythonRelaxDepsHook ];
42   pythonRelaxDeps = [ "protobuf" ];
44   build-system = [
45     poetry-core
46     poetry-dynamic-versioning
47   ];
49   dependencies = [
50     blackrenderer
51     fonttools
52     freetype-py
53     gflanguages
54     glyphsets
55     jinja2
56     ninja
57     pillow
58     protobuf
59     pyahocorasick
60     python-bidi
61     selenium
62     tqdm
63     uharfbuzz
64     unicodedata2
65     youseedee
66     numpy
67   ];
69   nativeCheckInputs = [ pytestCheckHook ];
71   disabledTests = [
72     # requires internet
73     "test_download_google_fonts_family_to_file"
74     "test_download_google_fonts_family_to_bytes"
75     "test_download_google_fonts_family_not_existing"
76     "test_download_latest_github_release"
77   ];
79   disabledTestPaths = [
80     # Want the files downloaded by the tests above
81     "tests/test_functional.py"
82     "tests/test_html.py"
83     "tests/test_matcher.py"
84     "tests/test_font.py"
85   ];
87   meta = {
88     description = "Font comparison tool that will not stop until your fonts are exhaustively compared";
89     homepage = "https://github.com/googlefonts/diffenator2";
90     changelog = "https://github.com/googlefonts/diffenator2/releases/tag/v${version}";
91     license = lib.licenses.asl20;
92     mainProgram = "diffenator2";
93     maintainers = with lib.maintainers; [ jopejoe1 ];
94   };