File tree Expand file tree Collapse file tree 1 file changed +20
-11
lines changed
pkgs/development/python-modules/freetype-py Expand file tree Collapse file tree 1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change 33 stdenv ,
44 buildPythonPackage ,
55 fetchPypi ,
6- substituteAll ,
6+ replaceVars ,
7+ setuptools ,
78 setuptools-scm ,
89 freetype ,
910 pytestCheckHook ,
1011} :
1112
1213buildPythonPackage 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}
You can’t perform that action at this time.
0 commit comments