diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2021-01-20 07:31:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 07:31:42 -0800 |
commit | 3df16a48bf41b440c0809ef11e420ece12282549 (patch) | |
tree | ae0f92d8aca84347ce876b38230c5f3fe3fd3d85 /pkgs/tools/text | |
parent | 9f821d9d1b77d1c672307fc3995a348292ea86c0 (diff) | |
parent | db28fc965bb946fcb96972789c4376e2cb9cfbad (diff) |
Merge pull request #110043 from r-ryantm/auto-update/link-grammar
link-grammar: 5.8.0 -> 5.8.1
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/link-grammar/default.nix | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/pkgs/tools/text/link-grammar/default.nix b/pkgs/tools/text/link-grammar/default.nix index d3ecc519a5fc..b5cfdcbfc0c9 100644 --- a/pkgs/tools/text/link-grammar/default.nix +++ b/pkgs/tools/text/link-grammar/default.nix @@ -1,14 +1,16 @@ -{ lib, stdenv, fetchurl, pkg-config, python3, sqlite, libedit, zlib }: +{ lib, stdenv, fetchurl, pkg-config, python3, sqlite, libedit, zlib, runCommand, dieHook }: -stdenv.mkDerivation rec { - version = "5.8.0"; +let + +link-grammar = stdenv.mkDerivation rec { + version = "5.8.1"; pname = "link-grammar"; outputs = [ "bin" "out" "dev" "man" ]; src = fetchurl { url = "http://www.abisource.com/downloads/${pname}/${version}/${pname}-${version}.tar.gz"; - sha256 = "1v8ngx77nachxln68xpvyw2lh7z59pzsi99h8j0mnrm0gjsacrdd"; + sha256 = "sha256-EcT/VR+lFpJX2sxXUIDGOwdceQ7awpmEqUZBoJk7UFs="; }; nativeBuildInputs = [ pkg-config python3 ]; @@ -18,11 +20,30 @@ stdenv.mkDerivation rec { "--disable-java-bindings" ]; + doCheck = true; + + passthru.tests = { + quick = runCommand "link-grammar-quick-test" { + buildInputs = [ + link-grammar + dieHook + ]; + } '' + echo "Furiously sleep ideas green colorless." | link-parser en | grep "No complete linkages found." || die "Grammaticaly invalid sentence was parsed." + echo "Colorless green ideas sleep furiously." | link-parser en | grep "Found .* linkages." || die "Grammaticaly valid sentence was not parsed." + touch $out + ''; + }; + meta = with lib; { description = "A Grammar Checking library"; homepage = "https://www.abisource.com/projects/link-grammar/"; - license = licenses.lgpl21; + changelog = "https://github.com/opencog/link-grammar/blob/link-grammar-${version}/ChangeLog"; + license = licenses.lgpl21Only; maintainers = with maintainers; [ jtojnar ]; platforms = platforms.unix; }; -} +}; + +in + link-grammar |