1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pkg-config, 6 setuptools, 7 pango, 8 cython, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "manimpango"; 16 version = "0.6.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "ManimCommunity"; 23 repo = "manimpango"; 24 tag = "v${version}"; 25 hash = "sha256-nN+XOnki8fG7URMy2Fhs2X+yNi8Y7wDo53d61xaRa3w="; 26 }; 27 28 nativeBuildInputs = [ pkg-config ]; 29 30 buildInputs = [ pango ]; 31 32 build-system = [ 33 setuptools 34 cython 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-cov-stub 39 pytestCheckHook 40 ]; 41 42 preCheck = '' 43 rm -r manimpango 44 ''; 45 46 pythonImportsCheck = [ "manimpango" ]; 47 48 meta = with lib; { 49 description = "Binding for Pango"; 50 homepage = "https://github.com/ManimCommunity/ManimPango"; 51 changelog = "https://github.com/ManimCommunity/ManimPango/releases/tag/v${version}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ emilytrau ]; 54 }; 55}