1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fonttools,
6 setuptools-scm,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "fontmath";
13 version = "0.9.4";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-H9kZDJ14ThMFw8SXcbkdkQ8kakt8RO3iGcmaB+167aQ=";
21 extension = "zip";
22 };
23
24 nativeBuildInputs = [ setuptools-scm ];
25
26 propagatedBuildInputs = [ fonttools ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = with lib; {
31 description = "Collection of objects that implement fast font, glyph, etc. math";
32 homepage = "https://github.com/robotools/fontMath/";
33 changelog = "https://github.com/robotools/fontMath/releases/tag/${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ sternenseemann ];
36 };
37}