Merge pull request #129755 from blitz/fix-watson

This commit is contained in:
Sandro 2021-07-10 02:37:38 +02:00 committed by GitHub
commit 6353c96de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,23 @@
with pythonPackages;
buildPythonApplication rec {
let
# Watson is currently not compatible with Click 8. See the following
# upstream issues / MRs:
#
# https://github.com/TailorDev/Watson/issues/430
# https://github.com/TailorDev/Watson/pull/432
#
# Workaround the issue by providing click 7 explicitly.
click7 = pythonPackages.callPackage ../../../development/python-modules/click/7.nix {};
click7-didyoumean = click-didyoumean.override {
click = click7;
};
in buildPythonApplication rec {
pname = "watson";
# When you update Watson, please check whether the Click 7
# workaround above can go away.
version = "2.0.1";
src = fetchFromGitHub {
@ -19,7 +34,7 @@ buildPythonApplication rec {
'';
checkInputs = [ pytestCheckHook pytest-mock mock pytest-datafiles ];
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
propagatedBuildInputs = [ arrow click7 click7-didyoumean requests ];
nativeBuildInputs = [ installShellFiles ];
meta = with lib; {