mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fonttools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fontpens";
|
|
version = "0.2.4";
|
|
|
|
src = fetchPypi {
|
|
pname = "fontPens";
|
|
inherit version;
|
|
sha256 = "1za15dzsnymq6d9x7xdfqwgw4a3003wj75fn2crhyidkfd2s3nd6";
|
|
extension = "zip";
|
|
};
|
|
|
|
propagatedBuildInputs = [ fonttools ];
|
|
|
|
# can't run normal tests due to circular dependency with fontParts
|
|
doCheck = false;
|
|
pythonImportsCheck =
|
|
[ "fontPens" ]
|
|
++ (builtins.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 ];
|
|
};
|
|
}
|