1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 defcon, 6 fonttools, 7 gflanguages, 8 glyphslib, 9 pytestCheckHook, 10 pyyaml, 11 requests, 12 setuptools, 13 setuptools-scm, 14 unicodedata2, 15}: 16 17buildPythonPackage rec { 18 pname = "glyphsets"; 19 version = "1.0.0"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-fa+W1IGIZcn1P1xNKm1Yb/TOuf4QdDVnIvlDkOLOcLY="; 25 }; 26 27 dependencies = [ 28 defcon 29 fonttools 30 gflanguages 31 glyphslib 32 pyyaml 33 requests 34 setuptools 35 unicodedata2 36 ]; 37 build-system = [ setuptools-scm ]; 38 39 doCheck = true; 40 nativeCheckInputs = [ pytestCheckHook ]; 41 preCheck = '' 42 export PATH="$out/bin:$PATH" 43 ''; 44 disabledTests = [ 45 # This "test" just tries to connect to PyPI and look for newer releases. Not needed. 46 "test_dependencies" 47 ]; 48 49 meta = with lib; { 50 description = "Google Fonts glyph set metadata"; 51 mainProgram = "glyphsets"; 52 homepage = "https://github.com/googlefonts/glyphsets"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ danc86 ]; 55 }; 56}