blob: 9ab5590e4e3b901c3fd3d6f9c76a211619f476ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ lib
, buildPythonPackage
, cython
, fetchpatch
, fetchPypi
, setuptools-scm
, fonttools
, pytestCheckHook
, wheel
}:
buildPythonPackage rec {
pname = "compreffor";
version = "0.5.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-9NMmIJC8Q4hRC/H2S7OrgoWSQ9SRIPHxHvZpPrPCvHo=";
};
patches = [
# https://github.com/googlefonts/compreffor/pull/153
(fetchpatch {
name = "remove-setuptools-git-ls-files.patch";
url = "https://github.com/googlefonts/compreffor/commit/10f563564390568febb3ed1d0f293371cbd86953.patch";
hash = "sha256-wNQMJFJXTFILGzAgzUXzz/rnK67/RU+exYP6MhEQAkA=";
})
];
nativeBuildInputs = [
cython
setuptools-scm
wheel
];
propagatedBuildInputs = [
fonttools
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests cannot seem to open the cpython module.
doCheck = false;
pythonImportsCheck = [
"compreffor"
];
meta = with lib; {
description = "CFF table subroutinizer for FontTools";
mainProgram = "compreffor";
homepage = "https://github.com/googlefonts/compreffor";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
|