Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cu2qu, 6 defcon, 7 fontfeatures, 8 fonttools, 9 glyphslib, 10 openstep-plist, 11 orjson, 12 pytestCheckHook, 13 setuptools, 14 setuptools-scm, 15 ufolib2, 16 vfblib, 17}: 18 19buildPythonPackage rec { 20 pname = "babelfont"; 21 version = "3.0.5"; 22 pyproject = true; 23 24 # PyPI source tarballs omit tests, fetch from Github instead 25 src = fetchFromGitHub { 26 owner = "simoncozens"; 27 repo = pname; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-9PEOkkm7qH4ExiJJKrTZX5Ph/urtOyFsy7jjtFepncU="; 30 }; 31 32 build-system = [ 33 setuptools 34 setuptools-scm 35 ]; 36 37 dependencies = [ 38 cu2qu 39 fontfeatures 40 fonttools 41 glyphslib 42 openstep-plist 43 orjson 44 ufolib2 45 vfblib 46 ]; 47 48 nativeCheckInputs = [ 49 defcon 50 pytestCheckHook 51 ]; 52 53 # Want non exsiting test data 54 disabledTests = [ 55 "test_rename" 56 "test_rename_nested" 57 "test_rename_contextual" 58 ]; 59 60 disabledTestPaths = [ "tests/test_glyphs3_roundtrip.py" ]; 61 62 meta = with lib; { 63 description = "Python library to load, examine, and save fonts in a variety of formats"; 64 mainProgram = "babelfont"; 65 homepage = "https://github.com/simoncozens/babelfont"; 66 license = licenses.bsd3; 67 maintainers = with maintainers; [ danc86 ]; 68 }; 69}