18 buildPythonPackage rec {
23 disabled = pythonOlder "3.7";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-3BZ71JVvj7GCojM8ycu160viPj8BLJ1SiW86Df2fzsw=";
32 nativeBuildInputs = [ poetry-core ];
34 propagatedBuildInputs =
39 # required by fonttools[ufo]
42 ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]
43 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
51 pythonImportsCheck = [ "statmake" ];
54 # Test requires an update as later cattrs is present in Nixpkgs
55 # https://github.com/daltonmaag/statmake/issues/42
56 "test_load_stylespace_broken_range"
60 description = "Applies STAT information from a Stylespace to a variable font";
61 mainProgram = "statmake";
62 homepage = "https://github.com/daltonmaag/statmake";
63 changelog = "https://github.com/daltonmaag/statmake/releases/tag/v${version}";
64 license = licenses.mit;