1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 fonttools,
7 black,
8}:
9
10buildPythonPackage rec {
11 pname = "paintcompiler";
12 version = "0.3.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "simoncozens";
17 repo = "paintcompiler";
18 rev = "v${version}";
19 hash = "sha256-dmVBQUUyFc71zq8fXBQ4ii/llrGdtUCOponCzSeut6g=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 fonttools
26 black
27 ];
28
29 pythonImportsCheck = [
30 "paintcompiler"
31 "paintdecompiler"
32 ];
33
34 meta = {
35 description = "Paint compiler for COLRv1 fonts";
36 homepage = "https://github.com/simoncozens/paintcompiler";
37 license = lib.licenses.asl20;
38 mainProgram = "paintcompiler";
39 maintainers = with lib.maintainers; [ jopejoe1 ];
40 };
41}