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