1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fonttools,
6 importlib-resources,
7 setuptools,
8 setuptools-scm,
9 youseedee,
10}:
11
12buildPythonPackage rec {
13 pname = "gfsubsets";
14 version = "2024.9.25";
15 gitTag = "v2024.02.05";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-jEuIBNQ89Le3Rbk0W4PLl9LE7rP0IcE6RAzyfhZb7lY=";
20 };
21
22 pyproject = true;
23
24 build-system = [
25 setuptools
26 setuptools-scm
27 ];
28
29 dependencies = [
30 fonttools
31 importlib-resources
32 youseedee
33 ];
34
35 # Package has no unit tests.
36 doCheck = false;
37 pythonImportsCheck = [ "gfsubsets" ];
38
39 meta = with lib; {
40 description = "Codepoint definitions for the Google Fonts subsetter";
41 homepage = "https://github.com/googlefonts/nam-files";
42 changelog = "https://github.com/googlefonts/nam-files/releases/tag/${gitTag}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ danc86 ];
45 };
46}