Skip to content

Commit 037cf30

Browse files
authored
python312Packages.freetype-py: 2.1.0.post1 -> 2.3.0 (NixOS#372656)
2 parents b607eca + 817fab2 commit 037cf30

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

pkgs/development/python-modules/freetype-py/default.nix

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,41 @@
33
stdenv,
44
buildPythonPackage,
55
fetchPypi,
6-
substituteAll,
6+
replaceVars,
7+
setuptools,
78
setuptools-scm,
89
freetype,
910
pytestCheckHook,
1011
}:
1112

1213
buildPythonPackage rec {
1314
pname = "freetype-py";
14-
version = "2.1.0.post1";
15-
format = "setuptools";
15+
version = "2.3.0";
16+
pyproject = true;
1617

1718
src = fetchPypi {
1819
inherit pname version;
19-
sha256 = "1k62fx53qrv9nb73mpqi2r11wzbx41qfv5qppvh6rylywnrknf3n";
20+
hash = "sha256-+bZM4ycqXDWNzugkgAoy1wmX+4cqCWWlV63KIPznpdA=";
21+
extension = "zip";
2022
};
2123

2224
patches = [
23-
(substituteAll {
24-
src = ./library-paths.patch;
25+
(replaceVars ./library-paths.patch {
2526
freetype = "${freetype.out}/lib/libfreetype${stdenv.hostPlatform.extensions.sharedLibrary}";
2627
})
2728
];
2829

29-
nativeBuildInputs = [ setuptools-scm ];
30+
postPatch = ''
31+
substituteInPlace pyproject.toml \
32+
--replace-fail ', "certifi", "cmake"' ""
33+
'';
34+
35+
build-system = [
36+
setuptools
37+
setuptools-scm
38+
];
3039

31-
propagatedBuildInputs = [ freetype ];
40+
dependencies = [ freetype ];
3241

3342
preCheck = ''
3443
cd tests
@@ -38,10 +47,10 @@ buildPythonPackage rec {
3847

3948
pythonImportsCheck = [ "freetype" ];
4049

41-
meta = with lib; {
50+
meta = {
4251
homepage = "https://github.com/rougier/freetype-py";
4352
description = "FreeType (high-level Python API)";
44-
license = licenses.bsd3;
45-
maintainers = with maintainers; [ goertzenator ];
53+
license = lib.licenses.bsd3;
54+
maintainers = with lib.maintainers; [ goertzenator ];
4655
};
4756
}

0 commit comments

Comments
 (0)