git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #88015 from alexarice/agda-pkg-init

agda-pkg: init at 0.1.50

commitdba97ff6dd23cbbde5b36b2877ef11200e135dea authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateThu 28 May 2020, 12:32 (6 years ago) parentdf9ac8bdb1bed3
4 files changed+71
pkgs/development/python-modules/ponywhoosh/default.nix+23 pkgs/development/tools/agda-pkg/default.nix+44 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/ponywhoosh/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{ lib, buildPythonPackage, fetchPypi, pony, whoosh }:
2+
3+buildPythonPackage rec {
4+ pname = "ponywhoosh";
5+ version = "1.7.8";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1mggj9d265hra4z67qyla686qvl0cf79655cszi136gh9hqlibv9";
10+ };
11+
12+ propagatedBuildInputs = [
13+ pony
14+ whoosh
15+ ];
16+
17+ meta = with lib; {
18+ homepage = "https://pythonhosted.org/ponywhoosh/";
19+ description = "Make your database over PonyORM searchable";
20+ license = licenses.mit;
21+ maintainers = with maintainers; [ alexarice ];
22+ };
23+}
pkgs/development/tools/agda-pkg/default.nixnew file+44
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -601,6 +601,8 @@ in
601601
602602 afpfs-ng = callPackage ../tools/filesystems/afpfs-ng { };
603603
604+ agda-pkg = callPackage ../development/tools/agda-pkg { };
605+
604606 agrep = callPackage ../tools/text/agrep { };
605607
606608 aha = callPackage ../tools/text/aha { };
pkgs/top-level/python-packages.nix+2
@@ -5073,6 +5073,8 @@ in {
50735073
50745074 polib = callPackage ../development/python-modules/polib {};
50755075
5076+ ponywhoosh = callPackage ../development/python-modules/ponywhoosh { };
5077+
50765078 posix_ipc = callPackage ../development/python-modules/posix_ipc { };
50775079
50785080 portend = callPackage ../development/python-modules/portend { };