pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / misc / present / default.nix
blobaa586aded146d0ee10885c6e218eee8eb2e11bb9
1 { lib, python3Packages, fetchPypi }:
3 let
4     # https://github.com/NixOS/nixpkgs/issues/348788
5     mistune_2 = python3Packages.mistune.overridePythonAttrs(oldAttrs: rec {
6       version = "2.0.5";
7       src =  fetchPypi {
8         inherit (oldAttrs) pname;
9         inherit version;
10         hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
11       };
12     });
14 python3Packages.buildPythonPackage rec {
15   pname = "present";
16   version = "0.6.0";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-l9W5L4LD9qRo3rLBkgd2I/aDaj+ucib5UYg+X4RYg6c=";
21   };
23   propagatedBuildInputs = with python3Packages; [
24     click
25     pyyaml
26     pyfiglet
27     asciimatics
28     mistune_2
29   ];
31   pythonImportsCheck = [ "present" ];
33   # TypeError: don't know how to make test from: 0.6.0
34   doCheck = false;
36   meta = with lib; {
37     description = "Terminal-based presentation tool with colors and effects";
38     homepage = "https://github.com/vinayak-mehta/present";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ lom ];
41     mainProgram = "present";
42   };