1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 pytestCheckHook,
7 nix-update-script,
8 hatchling,
9 fonttools,
10 brotli,
11 bdffont,
12 pcffont,
13 pypng,
14}:
15
16buildPythonPackage rec {
17 pname = "pixel-font-builder";
18 version = "0.0.39";
19 pyproject = true;
20
21 disabled = pythonOlder "3.11";
22
23 src = fetchPypi {
24 pname = "pixel_font_builder";
25 inherit version;
26 hash = "sha256-osEaZDmby0Xcg3oec4m6TEXJQDfMvWeJeLOCIOwEMZA=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 fonttools
33 brotli
34 bdffont
35 pcffont
36 pypng
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "pixel_font_builder" ];
42
43 passthru.updateScript = nix-update-script { };
44
45 meta = {
46 homepage = "https://github.com/TakWolf/pixel-font-builder";
47 description = "Library that helps create pixel style fonts";
48 platforms = lib.platforms.all;
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [
51 TakWolf
52 h7x4
53 ];
54 };
55}