1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 bdffont,
7 pytestCheckHook,
8 nix-update-script,
9}:
10
11buildPythonPackage rec {
12 pname = "pcffont";
13 version = "0.0.13";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "TakWolf";
18 repo = "pcffont";
19 rev = "refs/tags/${version}";
20 hash = "sha256-DbPcE2Bx+V90s7P3Gq+Uz3iQNidwbNlp7zln8ykL7Sg=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [ bdffont ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "pcffont" ];
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = {
34 description = "Library for manipulating Portable Compiled Format (PCF) fonts";
35 homepage = "https://github.com/TakWolf/pcffont";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ ];
38 };
39}