2021-12-06 16:07:01 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pkg-config, pango, cython, AppKit, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "manimpango";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.4.0.post2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ManimCommunity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-BMRlEdvJJOUbsvKEoZx2qJqHSbL475dhBthUpnsXkn4=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "--cov --no-cov-on-fail" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
${python.interpreter} setup.py build_ext --inplace
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "manimpango" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ManimCommunity/ManimPango";
|
2022-01-26 04:04:25 +00:00
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Binding for Pango";
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = [ maintainers.emilytrau ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|