11 buildPythonPackage rec {
16 disabled = pythonOlder "3.8";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-S7IDL3ItP14/GrCUtSTT+JWuqRAY/Po0Kerq8mggDdg=";
25 build-system = [ setuptools ];
34 # The test notebooks try to download font files, unless they already exist in the test directory,
35 # so we prepare them in advance.
36 checkFonts = lib.map fetchurl (import ./checkfonts.nix);
37 copyFontCmd = font: "cp ${font} test/${lib.last (lib.splitString "/" font.url)}\n";
39 lib.concatMapStrings copyFontCmd checkFonts;
41 pytestFlagsArray = [ "--nbval-lax" ];
43 pythonImportsCheck = [ "ziafont" ];
46 description = "Convert TTF/OTF font glyphs to SVG paths";
47 homepage = "https://ziafont.readthedocs.io/en/latest/";
48 changelog = "https://github.com/cdelker/ziafont/blob/main/CHANGES.md";
49 license = lib.licenses.mit;
50 maintainers = [ lib.maintainers.sfrijters ];