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