Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 99 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook, setuptools, setuptools-scm, resvg, pngquant, absl-py, fonttools, lxml, ninja, picosvg, pillow, regex, toml, tomlkit, ufo2ft, ufolib2, zopfli,}:
buildPythonPackage rec { pname = "nanoemoji"; version = "0.15.8"; pyproject = true;
src = fetchFromGitHub { owner = "googlefonts"; repo = "nanoemoji"; tag = "v${version}"; hash = "sha256-QufiPTVb4bjWgb76DOOt0u4WGiZkbYC7oKkwxv3S8us="; };
patches = [ # this is necessary because the tests clear PATH/PYTHONPATH otherwise ./test-pythonpath.patch ];
build-system = [ setuptools setuptools-scm ];
nativeBuildInputs = [ pngquant resvg ];
# these two packages are just prebuilt wheels containing the respective binaries pythonRemoveDeps = [ "pngquant-cli" "resvg-cli" ];
dependencies = [ absl-py fonttools lxml ninja picosvg pillow regex toml tomlkit ufo2ft ufolib2 zopfli ];
nativeCheckInputs = [ pytestCheckHook ninja picosvg ];
makeWrapperArgs = [ "--prefix PATH : ${ lib.makeBinPath [ pngquant resvg ] }" ];
preCheck = '' # make sure the built binaries (nanoemoji/maximum_color) can be found by the test export PATH="$out/bin:$PATH" '';
meta = { description = "Wee tool to build color fonts"; homepage = "https://github.com/googlefonts/nanoemoji"; changelog = "https://github.com/googlefonts/nanoemoji/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ _999eagle ]; };}