1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 23:50:07 +03:00
nixpkgs/pkgs/development/python-modules/manim-slides/default.nix

101 lines
1.7 KiB
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
2024-05-22 16:01:06 +02:00
hatchling,
hatch-fancy-pypi-readme,
2024-05-22 16:01:06 +02:00
manim,
ffmpeg,
2024-05-22 16:01:06 +02:00
av,
2025-01-22 10:08:28 +00:00
beautifulsoup4,
2024-05-22 16:01:06 +02:00
click,
click-default-group,
jinja2,
lxml,
numpy,
pillow,
pydantic,
pydantic-extra-types,
python-pptx,
qtpy,
requests,
rich,
rtoml,
tqdm,
pyqt6,
# Optional dependencies
2024-05-22 16:01:06 +02:00
ipython,
# As Module or application?
2024-05-22 16:01:06 +02:00
withGui ? false,
}:
buildPythonPackage rec {
pname = "manim-slides";
version = "5.4.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jeertmans";
repo = "manim-slides";
tag = "v${version}";
hash = "sha256-LUnHv6Yr4le7B0OjA9m8s7tCd2OvUsjX0YR+5dv+Bjg=";
};
build-system = [
hatchling
hatch-fancy-pypi-readme
];
2024-05-22 16:01:06 +02:00
pythonRelaxDeps = [
"rtoml"
"qtpy"
];
2024-05-22 16:01:06 +02:00
dependencies =
[
av
2025-01-22 10:08:28 +00:00
beautifulsoup4
2024-05-22 16:01:06 +02:00
click
click-default-group
jinja2
lxml
numpy
pillow
pydantic
pydantic-extra-types
python-pptx
qtpy
requests
rich
rtoml
tqdm
2024-05-22 16:01:06 +02:00
# avconv is a potential alternative
ffmpeg
# This could also be manimgl, but that is not (yet) packaged
manim
]
++ lib.lists.optional (!withGui) ipython
++
lib.lists.optional withGui
# dependency of qtpy (could also be pyqt5)
pyqt6;
pythonImportsCheck = [ "manim_slides" ];
2025-01-22 10:08:28 +00:00
meta = {
changelog = "https://github.com/jeertmans/manim-slides/blob/${src.rev}/CHANGELOG.md";
description = "Tool for live presentations using manim";
homepage = "https://github.com/jeertmans/manim-slides";
2025-01-22 10:08:28 +00:00
license = lib.licenses.mit;
mainProgram = "manim-slides";
maintainers = with lib.maintainers; [ bpeetz ];
};
}