1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 python,
6 pyyaml,
7 fonttools,
8 fontforge,
9 setuptools,
10}:
11
12buildPythonApplication {
13 pname = "scfbuild";
14 version = "2.0.0";
15
16 format = "other";
17
18 src = fetchFromGitHub {
19 owner = "13rac1";
20 repo = "scfbuild";
21 rev = "6d84339512a892972185d894704efa67dd82e87a";
22 sha256 = "0wkyzkhshlax9rvdmn441gv87n9abfr0qqmgs8bkg9kbcjb4bhad";
23 };
24
25 propagatedBuildInputs = [
26 pyyaml
27 fonttools
28 fontforge
29 setuptools
30 ];
31
32 installPhase = ''
33 runHook preInstall
34
35 mkdir -p $out/${python.sitePackages}
36 cp -r scfbuild $out/${python.sitePackages}
37 cp -r bin $out
38
39 runHook postInstall
40 '';
41
42 meta = with lib; {
43 description = "SVGinOT color font builder";
44 homepage = "https://github.com/13rac1/scfbuild";
45 license = licenses.gpl3;
46 maintainers = with maintainers; [ abbradar ];
47 mainProgram = "scfbuild";
48 };
49}