Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
setuptools,
|
|
pango,
|
|
cython,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "manimpango";
|
|
version = "0.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ManimCommunity";
|
|
repo = "manimpango";
|
|
tag = "v${version}";
|
|
hash = "sha256-nN+XOnki8fG7URMy2Fhs2X+yNi8Y7wDo53d61xaRa3w=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "Cython>=3.0.2,<3.1" Cython
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ pango ];
|
|
|
|
build-system = [
|
|
setuptools
|
|
cython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
rm -r manimpango
|
|
'';
|
|
|
|
pythonImportsCheck = [ "manimpango" ];
|
|
|
|
meta = with lib; {
|
|
description = "Binding for Pango";
|
|
homepage = "https://github.com/ManimCommunity/ManimPango";
|
|
changelog = "https://github.com/ManimCommunity/ManimPango/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
};
|
|
}
|