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

99 lines
1.7 KiB
Nix
Raw Permalink 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,
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.5.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jeertmans";
repo = "manim-slides";
tag = "v${version}";
hash = "sha256-V1uopwyA6y+oTofaezA4pR+ewrh0TRmCwoYhIR/iH7I=";
};
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 =
[
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 = {
2025-03-26 03:07:36 +00:00
changelog = "https://github.com/jeertmans/manim-slides/blob/${src.tag}/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 ];
};
}