blob: a1259b85673a2c5e023d82ccaf40db6ee07d3147 (
plain)
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
|
{ lib, buildPythonPackage, fetchPypi, substituteAll, stdenv, setuptools_scm, freetype }:
buildPythonPackage rec {
pname = "freetype-py";
version = "2.1.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "1k62fx53qrv9nb73mpqi2r11wzbx41qfv5qppvh6rylywnrknf3n";
};
patches = [
(substituteAll {
src = ./library-paths.patch;
freetype = "${freetype.out}/lib/libfreetype${stdenv.hostPlatform.extensions.sharedLibrary}";
})
];
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ freetype ];
pythonImportsCheck = [ "freetype" ];
meta = with lib; {
homepage = "https://github.com/rougier/freetype-py";
description = "FreeType (high-level Python API)";
license = licenses.bsd3;
maintainers = with maintainers; [ goertzenator ];
};
}
|