Merge pull request #89764 from geistesk/watson-1.9.0
watson: 1.8.0 -> 1.9.0
This commit is contained in:
commit
e3a86263ad
@ -1,17 +1,27 @@
|
|||||||
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
|
{ stdenv, fetchFromGitHub, pythonPackages, fetchpatch, installShellFiles }:
|
||||||
|
|
||||||
with pythonPackages;
|
with pythonPackages;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "watson";
|
pname = "watson";
|
||||||
version = "1.8.0";
|
version = "1.9.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit version;
|
owner = "TailorDev";
|
||||||
pname = "td-watson";
|
repo = "Watson";
|
||||||
sha256 = "1ip66jhbcqifdw1avbhngwym0vv7fsqxgbph11da5wlqwfwp060n";
|
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 = ''
|
checkPhase = ''
|
||||||
pytest -vs tests
|
pytest -vs tests
|
||||||
'';
|
'';
|
||||||
@ -21,8 +31,8 @@ buildPythonApplication rec {
|
|||||||
installShellCompletion --zsh --name _watson watson.zsh-completion
|
installShellCompletion --zsh --name _watson watson.zsh-completion
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
|
checkInputs = [ py pytest pytest-datafiles pytest-mock pytestrunner ];
|
||||||
propagatedBuildInputs = [ requests click arrow ];
|
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user