about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/almonds/default.nix
blob: ec3891667c58d306f6b79307854fc24d2ecc50c4 (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
{ lib, python3, fetchFromGitHub, ncurses }:

with python3.pkgs; buildPythonApplication rec {
  pname = "almonds";
  version = "1.25b";

  src = fetchFromGitHub {
    owner = "Tenchi2xh";
    repo = "Almonds";
    rev = version;
    sha256 = "0j8d8jizivnfx8lpc4w6sbqj5hq35nfz0vdg7ld80sc5cs7jr3ws";
  };

  nativeBuildInputs = [ pytest ];
  buildInputs = [ ncurses ];
  propagatedBuildInputs = [ pillow ];

  checkPhase = "py.test";

  meta = with lib; {
    description = "Terminal Mandelbrot fractal viewer";
    homepage = "https://github.com/Tenchi2xh/Almonds";
    license = licenses.mit;
    maintainers = with maintainers; [ infinisil ];
  };
}