summary refs log tree commit diff
path: root/pkgs/development/tools/agda-pkg/default.nix
blob: 0d93694b50fe911148465b84f128a5fb3d361f54 (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
36
37
38
39
40
41
42
43
44
{ lib, python3Packages }:

with python3Packages;

buildPythonApplication rec {
  pname = "agda-pkg";
  version = "0.1.50";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0wpw90kw3danw91m3jzfdn7zmclimmiz74f77mpij9b1w6wvhm11";
  };

  # Checks need internet access, so we just check the program executes
  # At the moment the help page needs to write to $HOME, this can
  # be removed if https://github.com/agda/agda-pkg/issues/40 is fixed
  checkPhase = ''
    HOME=$NIX_BUILD_TOP $out/bin/apkg --help > /dev/null
  '';

  propagatedBuildInputs = [
    click
    GitPython
    pony
    whoosh
    natsort
    click-log
    requests
    humanize
    distlib
    jinja2
    pyyaml
    ponywhoosh
  ];

  meta = with lib; {
    homepage = "https://agda.github.io/agda-pkg/";
    description = "Package manager for Agda";
    license = licenses.mit;
    maintainers = with maintainers; [ alexarice ];
  };
}