1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, Babel
6, colorama
7, cssselect
8, python-dateutil
9, feedparser
10, gdata
11, gnupg
12, google-api-python-client
13, html2text
14, libyaml
15, lxml
16, mechanize
17, nose
18, pdfminer
19, pillow
20, prettytable
21, pyqt5
22, pyyaml
23, requests
24, simplejson
25, termcolor
26, unidecode
27}:
28
29buildPythonPackage rec {
30 pname = "woob";
31 version = "3.0";
32 disabled = isPy27;
33
34 src = fetchPypi {
35 inherit pname version;
36 sha256 = "09hpxy5zhn2b8li0xjf3zd7s46lawb0315p5mdcsci3bj3s4v1j7";
37 };
38
39 patches = [
40 # Disable doctests that require networking:
41 ./no-test-requiring-network.patch
42 ];
43
44 checkInputs = [ nose ];
45
46 nativeBuildInputs = [ pyqt5 ];
47
48 propagatedBuildInputs = [
49 Babel
50 colorama
51 cssselect
52 python-dateutil
53 feedparser
54 gdata
55 gnupg
56 google-api-python-client
57 html2text
58 libyaml
59 lxml
60 mechanize
61 pdfminer
62 pillow
63 prettytable
64 pyqt5
65 pyyaml
66 requests
67 simplejson
68 termcolor
69 unidecode
70 ];
71
72 checkPhase = ''
73 nosetests
74 '';
75
76 meta = with lib; {
77 homepage = "https://woob.tech";
78 description = "Collection of applications and APIs to interact with websites without requiring the user to open a browser";
79 license = licenses.lgpl3Plus;
80 maintainers = [ maintainers.DamienCassou ];
81 };
82}