2021-04-12 10:50:28 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, Babel
|
|
|
|
, colorama
|
|
|
|
, cssselect
|
2021-07-03 13:37:24 +02:00
|
|
|
, python-dateutil
|
2021-04-12 10:50:28 +02:00
|
|
|
, feedparser
|
|
|
|
, gdata
|
|
|
|
, gnupg
|
|
|
|
, google-api-python-client
|
|
|
|
, html2text
|
|
|
|
, libyaml
|
|
|
|
, lxml
|
|
|
|
, mechanize
|
|
|
|
, nose
|
|
|
|
, pdfminer
|
|
|
|
, pillow
|
|
|
|
, prettytable
|
|
|
|
, pyqt5
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, simplejson
|
|
|
|
, termcolor
|
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "woob";
|
|
|
|
version = "3.0";
|
2021-04-14 14:53:30 +02:00
|
|
|
disabled = isPy27;
|
2021-04-12 10:50:28 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "09hpxy5zhn2b8li0xjf3zd7s46lawb0315p5mdcsci3bj3s4v1j7";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Disable doctests that require networking:
|
|
|
|
./no-test-requiring-network.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pyqt5 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
Babel
|
|
|
|
colorama
|
|
|
|
cssselect
|
2021-07-03 13:37:24 +02:00
|
|
|
python-dateutil
|
2021-04-12 10:50:28 +02:00
|
|
|
feedparser
|
|
|
|
gdata
|
|
|
|
gnupg
|
|
|
|
google-api-python-client
|
|
|
|
html2text
|
|
|
|
libyaml
|
|
|
|
lxml
|
|
|
|
mechanize
|
|
|
|
pdfminer
|
|
|
|
pillow
|
|
|
|
prettytable
|
|
|
|
pyqt5
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
termcolor
|
|
|
|
unidecode
|
2021-04-14 14:53:30 +02:00
|
|
|
];
|
2021-04-12 10:50:28 +02:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://woob.tech";
|
|
|
|
description = "Collection of applications and APIs to interact with websites without requiring the user to open a browser";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = [ maintainers.DamienCassou ];
|
|
|
|
};
|
|
|
|
}
|