2021-04-15 00:37:46 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-01-26 04:04:25 +00:00
|
|
|
, buildPythonPackage
|
2021-04-15 00:37:46 +00:00
|
|
|
, colorama
|
|
|
|
, cssselect
|
|
|
|
, feedparser
|
2022-01-26 04:04:25 +00:00
|
|
|
, fetchFromGitLab
|
2021-04-15 00:37:46 +00:00
|
|
|
, gdata
|
|
|
|
, gnupg
|
|
|
|
, google-api-python-client
|
|
|
|
, html2text
|
|
|
|
, libyaml
|
|
|
|
, lxml
|
|
|
|
, mechanize
|
|
|
|
, nose
|
2022-06-16 17:23:12 +00:00
|
|
|
, pdfminer-six
|
2021-04-15 00:37:46 +00:00
|
|
|
, pillow
|
|
|
|
, prettytable
|
|
|
|
, pyqt5
|
2022-01-26 04:04:25 +00:00
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
2021-04-15 00:37:46 +00:00
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, simplejson
|
|
|
|
, termcolor
|
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "woob";
|
|
|
|
version = "3.0";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "woob";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-XLcHNidclORbxVXgcsHY6Ja/dak+EVSKTaVQmg1f/rw=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pyqt5
|
2021-04-15 00:37:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-04-15 00:37:46 +00:00
|
|
|
colorama
|
|
|
|
cssselect
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2021-04-15 00:37:46 +00:00
|
|
|
feedparser
|
|
|
|
gdata
|
|
|
|
gnupg
|
|
|
|
google-api-python-client
|
|
|
|
html2text
|
|
|
|
libyaml
|
|
|
|
lxml
|
|
|
|
mechanize
|
2022-06-16 17:23:12 +00:00
|
|
|
pdfminer-six
|
2021-04-15 00:37:46 +00:00
|
|
|
pillow
|
|
|
|
prettytable
|
|
|
|
pyqt5
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
termcolor
|
|
|
|
unidecode
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "with-doctest = 1" "" \
|
|
|
|
--replace "with-coverage = 1" ""
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-26 04:04:25 +00:00
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"woob"
|
|
|
|
];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
meta = with lib; {
|
2022-01-26 04:04:25 +00:00
|
|
|
description = "Collection of applications and APIs to interact with websites";
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://woob.tech";
|
|
|
|
license = licenses.lgpl3Plus;
|
2022-01-26 04:04:25 +00:00
|
|
|
maintainers = with maintainers; [ DamienCassou ];
|
|
|
|
};
|
2021-04-15 00:37:46 +00:00
|
|
|
}
|