summary refs log tree commit diff
path: root/pkgs/tools/typesetting/odpdown/default.nix
blob: 9f62671a4facfedacb7ac3581816d1e5a97ede36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchurl, pythonPackages, libreoffice }:

pythonPackages.buildPythonApplication rec {

  pname = "odpdown";
  version = "0.4.1";

  src = fetchurl {
    url = "https://github.com/thorstenb/odpdown/archive/v${version}.tar.gz";
    sha256 = "005eecc73c65b9d4c09532547940718a7b308cd565f62a213dfa040827d4d565";
  };

  propagatedBuildInputs = with pythonPackages; [ libreoffice lpod lxml mistune pillow pygments ];

  checkInputs = with pythonPackages; [
    nose
  ];

  meta = with stdenv.lib; {
    homepage = https://github.com/thorstenb/odpdown;
    repositories.git = https://github.com/thorstenb/odpdown.git;
    description = "Create nice-looking slides from your favourite text editor";
    longDescription = ''
      Have a tool like pandoc, latex beamer etc, that you can write (or
      auto-generate) input for within your favourite hacker's editor, and
      generate nice-looking slides from. Using your corporation's mandatory,
      CI-compliant and lovely-artsy Impress template. Including
      syntax-highlighted code snippets of your latest hack, auto-fitted into the
      slides.
    '';
    license = licenses.bsd3;
    platforms = with platforms; linux ++ darwin;
    maintainers = with maintainers; [ vandenoever ];
  };
}