mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-30 22:08:45 +00:00
Diff: https://github.com/robotools/fontpens/compare/v0.3.0...v0.4.0 Changelog: https://github.com/robotools/fontPens/releases/tag/v0.4.0
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fonttools,
|
|
hatch-vcs,
|
|
hatchling,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fontpens";
|
|
version = "0.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "robotools";
|
|
repo = "fontpens";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-K768vbhacnuSRlmC3QG+7p+y8QiBtvqETvCYOuO1IxM=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
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 = {
|
|
changelog = "https://github.com/robotools/fontPens/releases/tag/${finalAttrs.src.tag}";
|
|
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 ];
|
|
};
|
|
})
|