1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytestCheckHook
6, nbval
7}:
8
9buildPythonPackage rec {
10 pname = "ziafont";
11 version = "0.6";
12
13 format = "pyproject";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "cdelker";
19 repo = pname;
20 rev = version;
21 hash = "sha256-3ZVj1ZxbFkFDDYbsIPzo7GMWGx7f5qWZQlcGCVXv73M=";
22 };
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 nbval
27 ];
28
29 preCheck = "rm test/manyfonts.ipynb"; # Tries to download fonts
30
31 pytestFlagsArray = [ "--nbval-lax" ];
32
33 pythonImportsCheck = [ "ziafont" ];
34
35 meta = with lib; {
36 description = "Convert TTF/OTF font glyphs to SVG paths";
37 homepage = "https://ziafont.readthedocs.io/en/latest/";
38 license = licenses.mit;
39 maintainers = with maintainers; [ sfrijters ];
40 };
41}