scfbuild: switch to Python 3

Needed to drop phases @#$% to be able to use this at all.

Fixes emojione and twemoji-color-font
This commit is contained in:
Jan Tojnar
2019-10-31 01:10:44 +01:00
parent 5cef7b49ec
commit fc1a7289ed
3 changed files with 60 additions and 4 deletions
+13 -3
View File
@@ -4,26 +4,36 @@ buildPythonApplication {
pname = "scfbuild";
version = "1.0.3";
format = "other";
src = fetchFromGitHub {
owner = "eosrei";
owner = "13rac1";
repo = "scfbuild";
rev = "9acc7fc5fedbf48683d8932dd5bd7583bf922bae";
sha256 = "1zlqsxkpg7zvmhdjgbqwwc9qgac2b8amzq8c5kwyh5cv95zcp6qn";
};
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
patches = [
# Convert to Python 3
# https://github.com/13rac1/scfbuild/pull/19
./python-3.patch
];
propagatedBuildInputs = [ pyyaml fonttools fontforge ];
installPhase = ''
runHook preInstall
mkdir -p $out/${python.sitePackages}
cp -r scfbuild $out/${python.sitePackages}
cp -r bin $out
runHook postInstall
'';
meta = with lib; {
description = "SVGinOT color font builder";
homepage = https://github.com/eosrei/scfbuild;
homepage = https://github.com/13rac1/scfbuild;
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};