2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
babel,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
fetchpatch,
|
|
|
|
html2text,
|
|
|
|
lxml,
|
|
|
|
packaging,
|
|
|
|
pillow,
|
|
|
|
prettytable,
|
|
|
|
pycountry,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
python-jose,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
rich,
|
|
|
|
setuptools,
|
|
|
|
testers,
|
|
|
|
unidecode,
|
|
|
|
woob,
|
2021-04-15 00:37:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "woob";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.6";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "woob";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "woob";
|
2022-01-26 04:04:25 +00:00
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-M9AjV954H1w64YGCVxDEGGSnoEbmocG3zwltob6IW04=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "no-deprecated-pkg_resources.patch";
|
|
|
|
url = "https://gitlab.com/woob/woob/-/commit/3283c4c1a935cc71acea98b2d8c88bc4bf28f643.patch";
|
|
|
|
hash = "sha256-3bRuv93ivKRxbGr52coO023DlxHZWwUeInXTPqQAeL8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "packaging" ];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2024-05-15 15:35:15 +00:00
|
|
|
python-jose
|
2021-04-15 00:37:46 +00:00
|
|
|
html2text
|
|
|
|
lxml
|
2023-03-24 00:07:29 +00:00
|
|
|
packaging
|
2021-04-15 00:37:46 +00:00
|
|
|
pillow
|
|
|
|
prettytable
|
2023-04-12 12:48:02 +00:00
|
|
|
pycountry
|
2021-04-15 00:37:46 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
2023-07-15 17:15:38 +00:00
|
|
|
rich
|
2021-04-15 00:37:46 +00:00
|
|
|
unidecode
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# require networking
|
|
|
|
"test_ciphers"
|
|
|
|
"test_verify"
|
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "woob" ];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = woob;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://gitlab.com/woob/woob/-/blob/${src.rev}/ChangeLog";
|
2022-01-26 04:04:25 +00:00
|
|
|
description = "Collection of applications and APIs to interact with websites";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "woob";
|
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
|
|
|
}
|