2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3Packages, fetchPypi }:
|
2021-11-08 18:32:00 +00:00
|
|
|
|
2024-10-15 17:12:56 +00:00
|
|
|
let
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/348788
|
|
|
|
mistune_2 = python3Packages.mistune.overridePythonAttrs(oldAttrs: rec {
|
|
|
|
version = "2.0.5";
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit (oldAttrs) pname;
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
2021-11-08 18:32:00 +00:00
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "present";
|
|
|
|
version = "0.6.0";
|
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2021-11-08 18:32:00 +00:00
|
|
|
inherit pname version;
|
2024-07-13 16:25:56 +00:00
|
|
|
hash = "sha256-l9W5L4LD9qRo3rLBkgd2I/aDaj+ucib5UYg+X4RYg6c=";
|
2021-11-08 18:32:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
pyfiglet
|
|
|
|
asciimatics
|
2024-10-15 17:12:56 +00:00
|
|
|
mistune_2
|
2021-11-08 18:32:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "present" ];
|
|
|
|
|
|
|
|
# TypeError: don't know how to make test from: 0.6.0
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal-based presentation tool with colors and effects";
|
|
|
|
homepage = "https://github.com/vinayak-mehta/present";
|
|
|
|
license = licenses.asl20;
|
2021-12-01 23:19:48 +00:00
|
|
|
maintainers = with maintainers; [ lom ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "present";
|
2021-11-08 18:32:00 +00:00
|
|
|
};
|
|
|
|
}
|