Files
nixpkgs/pkgs/development/python-modules/fontpens/default.nix
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fonttools,
setuptools,
}:
buildPythonPackage rec {
pname = "fontpens";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "robotools";
repo = "fontpens";
tag = "v${version}";
sha256 = "13msj0s7mg45klzbnd2w4f4ljb16bp9m0s872s6hczn0j7jmyz11";
};
build-system = [ setuptools ];
dependencies = [ fonttools ];
# can't run normal tests due to circular dependency with fontParts
doCheck = false;
pythonImportsCheck = [
"fontPens"
]
++ (map (s: "fontPens." + s) [
"angledMarginPen"
"digestPointPen"
"flattenPen"
"guessSmoothPointPen"
"marginPen"
"penTools"
"printPen"
"printPointPen"
"recordingPointPen"
"thresholdPen"
"thresholdPointPen"
"transformPointPen"
]);
meta = with lib; {
description = "Collection of classes implementing the pen protocol for manipulating glyphs";
homepage = "https://github.com/robotools/fontPens";
license = licenses.bsd3;
maintainers = [ maintainers.sternenseemann ];
};
}