tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
watson: 1.4.0 -> 1.5.2, fix build with patch
Frederik Rietdijk
8 years ago
c6b3be2e
562ac8e2
+18
-9
1 changed file
expand all
collapse all
unified
split
pkgs
applications
office
watson
default.nix
+18
-9
pkgs/applications/office/watson/default.nix
···
1
1
-
{ stdenv, pythonPackages }:
1
1
+
{ stdenv, pythonPackages, fetchpatch }:
2
2
+
3
3
+
with pythonPackages;
2
4
3
3
-
pythonPackages.buildPythonApplication rec {
5
5
+
buildPythonApplication rec {
4
6
pname = "td-watson";
5
5
-
name = "${pname}-${version}";
6
6
-
version = "1.4.0";
7
7
+
version = "1.5.2";
7
8
8
8
-
src = pythonPackages.fetchPypi {
9
9
+
src = fetchPypi {
9
10
inherit version pname;
10
10
-
sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq";
11
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
18
-
checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
19
19
-
propagatedBuildInputs = with pythonPackages; [ requests click arrow ];
19
19
+
20
20
+
patches = [
21
21
+
(fetchpatch {
22
22
+
url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch;
23
23
+
sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g";
24
24
+
})
25
25
+
];
26
26
+
27
27
+
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
28
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
27
-
}
36
36
+
}