15 buildPythonPackage rec {
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "ManimCommunity";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-EBSbvjQyQIXOzvQMbuTwOoV8xSAOYDlCBZ56NLneuQI=";
29 nativeBuildInputs = [ pkg-config ];
31 buildInputs = [ pango ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit ];
33 propagatedBuildInputs = [ cython ];
35 nativeCheckInputs = [ pytestCheckHook ];
38 substituteInPlace setup.cfg \
39 --replace "--cov --no-cov-on-fail" ""
43 ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
46 pythonImportsCheck = [ "manimpango" ];
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 ];