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