Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agda-pkg: init at 0.1.50 #88015

Merged
merged 2 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/ponywhoosh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi, pony, whoosh }:

buildPythonPackage rec {
pname = "ponywhoosh";
version = "1.7.8";

src = fetchPypi {
inherit pname version;
sha256 = "1mggj9d265hra4z67qyla686qvl0cf79655cszi136gh9hqlibv9";
};

propagatedBuildInputs = [
pony
whoosh
];

meta = with lib; {
homepage = "https://pythonhosted.org/ponywhoosh/";
description = "Make your database over PonyORM searchable";
license = licenses.mit;
maintainers = with maintainers; [ alexarice ];
};
}
44 changes: 44 additions & 0 deletions pkgs/development/tools/agda-pkg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ in

afpfs-ng = callPackage ../tools/filesystems/afpfs-ng { };

agda-pkg = callPackage ../development/tools/agda-pkg { };

agrep = callPackage ../tools/text/agrep { };

aha = callPackage ../tools/text/aha { };
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5055,6 +5055,8 @@ in {

polib = callPackage ../development/python-modules/polib {};

ponywhoosh = callPackage ../development/python-modules/ponywhoosh { };

posix_ipc = callPackage ../development/python-modules/posix_ipc { };

portend = callPackage ../development/python-modules/portend { };
Expand Down