Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 beziers, 6 glyphslib, 7 numpy, 8 setuptoolsCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "glyphtools"; 13 version = "0.8.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-PXwXHWMJbsi6ZtN+daaXAnlw3gV5DFAhyRxdBa7UP+M="; 19 }; 20 21 propagatedBuildInputs = [ 22 beziers 23 glyphslib 24 numpy 25 ]; 26 27 # A unit test suite does exist, but it only contains a dummy test that 28 # doesn't test anything. It does import the module though so we still run it. 29 doCheck = true; 30 nativeCheckInputs = [ 31 # Upstream apparently prefers the deprecated setuptools 'test' command. 32 setuptoolsCheckHook 33 ]; 34 35 meta = with lib; { 36 description = "Python library for extracting information from font glyphs"; 37 homepage = "https://github.com/simoncozens/glyphtools"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ danc86 ]; 40 }; 41}