tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.ttfautohint-py: 0.5.1 -> 0.6.0
jopejoe1
6 months ago
8d64b8c7
78580172
+4
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
ttfautohint-py
default.nix
+4
-8
pkgs/development/python-modules/ttfautohint-py/default.nix
···
13
13
14
14
buildPythonPackage rec {
15
15
pname = "ttfautohint-py";
16
16
-
version = "0.5.1";
16
16
+
version = "0.6.0";
17
17
pyproject = true;
18
18
19
19
src = fetchFromGitHub {
20
20
owner = "fonttools";
21
21
repo = "ttfautohint-py";
22
22
tag = "v${version}";
23
23
-
hash = "sha256-NTog461RpyHKo/Qpicj3tflehaKj9LlZEN9qeCMM6JQ=";
23
23
+
hash = "sha256-wA8su7HEQnDbCShrX9fiP/VKNMtMqeayHbQXHqy8iOA=";
24
24
};
25
25
26
26
postPatch = ''
27
27
substituteInPlace src/python/ttfautohint/__init__.py \
28
28
-
--replace-fail 'find_library("ttfautohint")' '"${lib.getLib ttfautohint}/lib/libttfautohint${stdenv.hostPlatform.extensions.sharedLibrary}"'
29
29
-
''
30
30
-
+ lib.optionalString stdenv.hostPlatform.isLinux ''
31
31
-
substituteInPlace src/python/ttfautohint/memory.py \
32
32
-
--replace-fail 'find_library("c")' '"${lib.getLib stdenv.cc.libc}/lib/libc.so.6"'
28
28
+
--replace-fail '_exe_full_path = None' '_exe_full_path = "${lib.getExe ttfautohint}"'
33
29
'';
34
30
35
31
env.TTFAUTOHINTPY_BUNDLE_DLL = false;
···
56
52
meta = {
57
53
description = "Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts";
58
54
homepage = "https://github.com/fonttools/ttfautohint-py";
59
59
-
changelog = "https://github.com/fonttools/ttfautohint-py/releases/tag/v${version}";
55
55
+
changelog = "https://github.com/fonttools/ttfautohint-py/releases/tag/${src.tag}";
60
56
license = lib.licenses.mit;
61
57
maintainers = with lib.maintainers; [ jopejoe1 ];
62
58
};