@@ -0,0 +1,44 @@
1+{ lib, python3Packages }:
2+
3+with python3Packages;
4+
5+buildPythonApplication rec {
6+ pname = "agda-pkg";
7+ version = "0.1.50";
8+
9+ disabled = pythonOlder "3.6";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "0wpw90kw3danw91m3jzfdn7zmclimmiz74f77mpij9b1w6wvhm11";
14+ };
15+
16+ # Checks need internet access, so we just check the program executes
17+ # At the moment the help page needs to write to $HOME, this can
18+ # be removed if https://github.com/agda/agda-pkg/issues/40 is fixed
19+ checkPhase = ''
20+ HOME=$NIX_BUILD_TOP $out/bin/apkg --help > /dev/null
21+ '';
22+
23+ propagatedBuildInputs = [
24+ click
25+ GitPython
26+ pony
27+ whoosh
28+ natsort
29+ click-log
30+ requests
31+ humanize
32+ distlib
33+ jinja2
34+ pyyaml
35+ ponywhoosh
36+ ];
37+
38+ meta = with lib; {
39+ homepage = "https://agda.github.io/agda-pkg/";
40+ description = "Package manager for Agda";
41+ license = licenses.mit;
42+ maintainers = with maintainers; [ alexarice ];
43+ };
44+}