Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools, setuptools-scm,
# dependencies fonttools, defcon, fontmath, booleanoperations,
# tests python,}:
buildPythonPackage (finalAttrs: { pname = "fontparts"; version = "1.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "robotools"; repo = "fontParts"; tag = finalAttrs.version; hash = "sha256-dBR9Lf8ECLAOAkEkEy4JCgOKmyXzwXaOXdW4cErWQcs="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "vcs-versioning"' "" \ --replace-fail "setuptools_scm[toml]>=3.4,<10" "setuptools_scm[toml]" substituteInPlace setup.cfg \ --replace-fail "setuptools_scm==9.2.2" "setuptools_scm" '';
build-system = [ setuptools setuptools-scm ];
dependencies = [ booleanoperations defcon fontmath fonttools ] ++ defcon.optional-dependencies.pens ++ fonttools.optional-dependencies.ufo ++ fonttools.optional-dependencies.lxml ++ fonttools.optional-dependencies.unicode;
pythonImportsCheck = [ "fontParts" ];
checkPhase = '' runHook preCheck ${python.interpreter} Lib/fontParts/fontshell/test.py runHook postCheck '';
meta = { description = "API for interacting with the parts of fonts during the font development process"; homepage = "https://github.com/robotools/fontParts"; changelog = "https://github.com/robotools/fontParts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.sternenseemann ]; };})