2018-02-25 09:19:10 -08:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, python, pyyaml, fonttools, fontforge }:
|
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
buildPythonApplication {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "scfbuild";
|
2018-02-25 09:19:10 -08:00
|
|
|
version = "1.0.3";
|
|
|
|
|
2019-10-30 10:35:22 -07:00
|
|
|
format = "other";
|
|
|
|
|
2018-02-25 09:19:10 -08:00
|
|
|
src = fetchFromGitHub {
|
2019-10-30 10:35:22 -07:00
|
|
|
owner = "13rac1";
|
2018-02-25 09:19:10 -08:00
|
|
|
repo = "scfbuild";
|
2019-02-27 11:47:59 -08:00
|
|
|
rev = "9acc7fc5fedbf48683d8932dd5bd7583bf922bae";
|
|
|
|
sha256 = "1zlqsxkpg7zvmhdjgbqwwc9qgac2b8amzq8c5kwyh5cv95zcp6qn";
|
2018-02-25 09:19:10 -08:00
|
|
|
};
|
|
|
|
|
2019-10-30 10:35:22 -07:00
|
|
|
patches = [
|
|
|
|
# Convert to Python 3
|
|
|
|
# https://github.com/13rac1/scfbuild/pull/19
|
|
|
|
./python-3.patch
|
|
|
|
];
|
2018-02-25 09:19:10 -08:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml fonttools fontforge ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-10-30 10:35:22 -07:00
|
|
|
runHook preInstall
|
|
|
|
|
2018-02-25 09:19:10 -08:00
|
|
|
mkdir -p $out/${python.sitePackages}
|
|
|
|
cp -r scfbuild $out/${python.sitePackages}
|
|
|
|
cp -r bin $out
|
2019-10-30 10:35:22 -07:00
|
|
|
|
|
|
|
runHook postInstall
|
2018-02-25 09:19:10 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SVGinOT color font builder";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/13rac1/scfbuild";
|
2018-02-25 09:19:10 -08:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|