1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6 beziers,
7 fonttools,
8 fs,
9 glyphtools,
10 lxml,
11 pytestCheckHook,
12 youseedee,
13}:
14
15buildPythonPackage rec {
16 pname = "fontfeatures";
17 version = "1.8.0";
18 format = "setuptools";
19
20 src = fetchPypi {
21 pname = "fontFeatures";
22 inherit version;
23 hash = "sha256-XLJD91IyUUjeSqdhWFfIqv9yISPcbU4bgRvXETSHOiY=";
24 };
25
26 propagatedBuildInputs = [
27 beziers
28 fonttools
29 fs
30 glyphtools
31 lxml
32 youseedee
33 ];
34
35 doCheck = true;
36 nativeCheckInputs = [ pytestCheckHook ];
37 disabledTestPaths = [
38 # These tests require babelfont but we have to leave it out and skip them
39 # to break the cyclic dependency with babelfont.
40 "tests/test_shaping_generic.py"
41 "tests/test_shaping_harfbuzz.py"
42 ];
43
44 meta = with lib; {
45 description = "Python library for compiling OpenType font features";
46 homepage = "https://github.com/simoncozens/fontFeatures";
47 license = licenses.bsd3;
48 maintainers = with maintainers; [ danc86 ];
49 };
50}