watson: 1.4.0 -> 1.5.2, fix build with patch

+18 -9
+18 -9
pkgs/applications/office/watson/default.nix
··· 1 - { stdenv, pythonPackages }: 1 + { stdenv, pythonPackages, fetchpatch }: 2 + 3 + with pythonPackages; 2 4 3 - pythonPackages.buildPythonApplication rec { 5 + buildPythonApplication rec { 4 6 pname = "td-watson"; 5 - name = "${pname}-${version}"; 6 - version = "1.4.0"; 7 + version = "1.5.2"; 7 8 8 - src = pythonPackages.fetchPypi { 9 + src = fetchPypi { 9 10 inherit version pname; 10 - sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq"; 11 + sha256 = "6e03d44a9278807fe5245e9ed0943f13ffb88e11249a02655c84cb86260b27c8"; 11 12 }; 12 13 13 14 # uses tox, test invocation fails ··· 15 16 checkPhase = '' 16 17 py.test -vs tests 17 18 ''; 18 - checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ]; 19 - propagatedBuildInputs = with pythonPackages; [ requests click arrow ]; 19 + 20 + patches = [ 21 + (fetchpatch { 22 + url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch; 23 + sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g"; 24 + }) 25 + ]; 26 + 27 + checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ]; 28 + propagatedBuildInputs = [ requests click arrow ]; 20 29 21 30 meta = with stdenv.lib; { 22 31 homepage = https://tailordev.github.io/Watson/; ··· 24 33 license = licenses.mit; 25 34 maintainers = with maintainers; [ mguentner ] ; 26 35 }; 27 - } 36 + }