about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorgeistesk <github.jyf300hj@0x21.biz>2020-06-07 21:08:38 +0200
committergeistesk <github.jyf300hj@0x21.biz>2020-06-07 21:12:21 +0200
commit1e3559fe19039cdcd5cba8f5ead869ea14567a40 (patch)
treeb79c26bd7ab12b3c603ba849ab1319cc3468b19a /pkgs
parent148bf83ceeaabf862cb83cf1e988bc8761a054a4 (diff)
downloadnixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar.gz
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar.bz2
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar.lz
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar.xz
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.tar.zst
nixlib-1e3559fe19039cdcd5cba8f5ead869ea14567a40.zip
watson: 1.8.0 -> 1.9.0
The src was switched to GitHub because PyPi does not contain all the
necessary test artefacts. Furthermore, a custom patch to support the
latest arrow version was added.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/office/watson/default.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix
index 52c94ce378e1..5d4b915edfb5 100644
--- a/pkgs/applications/office/watson/default.nix
+++ b/pkgs/applications/office/watson/default.nix
@@ -1,17 +1,27 @@
-{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
+{ stdenv, fetchFromGitHub, pythonPackages, fetchpatch, installShellFiles }:
 
 with pythonPackages;
 
 buildPythonApplication rec {
   pname = "watson";
-  version = "1.8.0";
+  version = "1.9.0";
 
-  src = fetchPypi {
-    inherit version;
-    pname = "td-watson";
-    sha256 = "1ip66jhbcqifdw1avbhngwym0vv7fsqxgbph11da5wlqwfwp060n";
+  src = fetchFromGitHub {
+    owner = "TailorDev";
+    repo = "Watson";
+    rev = version;
+    sha256 = "0f0ldwadjf0xncx3m4w4wwqddd4wjwcsrbhby8vgsnqsn48dnfcx";
   };
 
+  patches = [
+    # https://github.com/TailorDev/Watson/pull/380
+    # The nixpkgs' arrow version is too new / not supported by Watson's latest release.
+    (fetchpatch {
+      url = "https://github.com/TailorDev/Watson/commit/69b9ad25551525d52060f7fb2eef3653e872a455.patch";
+      sha256 = "0zrswgr0y219f92zi41m7cymfaspkhmlada4v9ijnsjjdb4bn2c9";
+    })
+  ];
+
   checkPhase = ''
     pytest -vs tests
   '';
@@ -21,8 +31,8 @@ buildPythonApplication rec {
     installShellCompletion --zsh --name _watson watson.zsh-completion
   '';
 
-  checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
-  propagatedBuildInputs = [ requests click arrow ];
+  checkInputs = [ py pytest pytest-datafiles pytest-mock pytestrunner ];
+  propagatedBuildInputs = [ arrow click click-didyoumean requests ];
   nativeBuildInputs = [ installShellFiles ];
 
   meta = with stdenv.lib; {