Files
nixpkgs/pkgs/development/python-modules/fontpens/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
description = "Collection of classes implementing the pen protocol for manipulating glyphs";
homepage = "https://github.com/robotools/fontPens";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.sternenseemann ];
};
}