Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 39 lines 789 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromBitbucket 5, pytestCheckHook 6, nbval 7}: 8 9buildPythonPackage rec { 10 pname = "ziafont"; 11 version = "0.5"; 12 13 disabled = pythonOlder "3.8"; 14 15 src = fetchFromBitbucket { 16 owner = "cdelker"; 17 repo = pname; 18 rev = version; 19 hash = "sha256-mTQ2yRG+E2nZ2g9eSg+XTzK8A1EgKsRfbvNO3CdYeLg="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 nbval 25 ]; 26 27 preCheck = "rm test/manyfonts.ipynb"; # Tries to download fonts 28 29 pytestFlagsArray = [ "--nbval-lax" ]; 30 31 pythonImportsCheck = [ "ziafont" ]; 32 33 meta = with lib; { 34 description = "Convert TTF/OTF font glyphs to SVG paths"; 35 homepage = "https://ziafont.readthedocs.io/en/latest/"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ sfrijters ]; 38 }; 39}