2022-01-26 04:04:25 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-01-26 04:04:25 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cssselect
|
|
|
|
, feedparser
|
2022-01-26 04:04:25 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, gdata
|
|
|
|
, gnupg
|
2021-03-09 03:18:52 +00:00
|
|
|
, google-api-python-client
|
2020-04-24 23:36:52 +00:00
|
|
|
, html2text
|
|
|
|
, libyaml
|
|
|
|
, lxml
|
|
|
|
, mechanize
|
|
|
|
, nose
|
2022-06-16 17:23:12 +00:00
|
|
|
, pdfminer-six
|
2020-04-24 23:36:52 +00:00
|
|
|
, pillow
|
|
|
|
, prettytable
|
|
|
|
, pyqt5
|
2022-01-26 04:04:25 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, simplejson
|
|
|
|
, termcolor
|
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "weboob";
|
|
|
|
version = "2.0";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1c69vzf8sg8471lcaafpz9iw2q3rfj5hmcpqrs2k59fkgbvy32zw";
|
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pyqt5
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2020-04-24 23:36:52 +00:00
|
|
|
cssselect
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
feedparser
|
|
|
|
gdata
|
|
|
|
gnupg
|
2021-03-09 03:18:52 +00:00
|
|
|
google-api-python-client
|
2020-04-24 23:36:52 +00:00
|
|
|
html2text
|
|
|
|
libyaml
|
|
|
|
lxml
|
|
|
|
mechanize
|
2022-06-16 17:23:12 +00:00
|
|
|
pdfminer-six
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
|
|
|
prettytable
|
|
|
|
pyqt5
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
termcolor
|
|
|
|
unidecode
|
2022-01-26 04:04:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "with-doctest = 1" "" \
|
|
|
|
--replace "with-coverage = 1" "" \
|
|
|
|
--replace "weboob.browser.filters.standard," "" \
|
|
|
|
--replace "weboob.browser.tests.filters," "" \
|
|
|
|
--replace "weboob.tools.application.formatters.json," "" \
|
|
|
|
--replace "weboob.tools.application.formatters.table," "" \
|
|
|
|
--replace "weboob.tools.capabilities.bank.transactions," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"weboob"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of applications and APIs to interact with websites";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://weboob.org";
|
2022-01-26 04:04:25 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|