1{
2 lib,
3 python3Packages,
4 fetchPypi,
5}:
6
7let
8 # https://github.com/NixOS/nixpkgs/issues/348788
9 mistune_2 = python3Packages.mistune.overridePythonAttrs (oldAttrs: rec {
10 version = "2.0.5";
11 src = fetchPypi {
12 inherit (oldAttrs) pname;
13 inherit version;
14 hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
15 };
16 });
17in
18python3Packages.buildPythonPackage rec {
19 pname = "present";
20 version = "0.6.0";
21 pyproject = true;
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-l9W5L4LD9qRo3rLBkgd2I/aDaj+ucib5UYg+X4RYg6c=";
26 };
27
28 build-system = with python3Packages; [ setuptools ];
29
30 dependencies = with python3Packages; [
31 click
32 pyyaml
33 pyfiglet
34 asciimatics
35 mistune_2
36 ];
37
38 pythonImportsCheck = [ "present" ];
39
40 # TypeError: don't know how to make test from: 0.6.0
41 doCheck = false;
42
43 meta = with lib; {
44 description = "Terminal-based presentation tool with colors and effects";
45 homepage = "https://github.com/vinayak-mehta/present";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ lom ];
48 mainProgram = "present";
49 };
50}