summary refs log tree commit diff
path: root/pkgs/tools/misc/noteshrink/default.nix
blob: 2d6f23de46879a15fe3fd3e8f5c5c4f3c903751a (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
{ lib, stdenv, fetchFromGitHub, python3, imagemagick }:

with python3.pkgs;

buildPythonApplication rec {
  pname = "noteshrink";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner  = "mzucker";
    repo   = "noteshrink";
    rev    = version;
    sha256 = "0xhrvg3d8ffnbbizsrfppcd2y98znvkgxjdmvbvin458m2rwccka";
  };

  propagatedBuildInputs = [ numpy scipy imagemagick pillow ];

  meta = with lib; {
    description = "Convert scans of handwritten notes to beautiful, compact PDFs";
    homepage    = "https://mzucker.github.io/2016/09/20/noteshrink.html";
    license     = licenses.mit;
    maintainers = with maintainers; [ rnhmjoj ];
  };
}