diff options
Diffstat (limited to 'pkgs/development/python-modules/woob/default.nix')
-rw-r--r-- | pkgs/development/python-modules/woob/default.nix | 66 |
1 files changed, 35 insertions, 31 deletions
diff --git a/pkgs/development/python-modules/woob/default.nix b/pkgs/development/python-modules/woob/default.nix index abc876b388a8b..41450c7e27a88 100644 --- a/pkgs/development/python-modules/woob/default.nix +++ b/pkgs/development/python-modules/woob/default.nix @@ -1,24 +1,26 @@ -{ lib -, babel -, buildPythonPackage -, fetchFromGitLab -, pythonRelaxDepsHook -, html2text -, lxml -, packaging -, pillow -, prettytable -, pycountry -, pytestCheckHook -, python-dateutil -, pythonOlder -, pyyaml -, requests -, rich -, setuptools -, testers -, unidecode -, woob +{ + lib, + babel, + buildPythonPackage, + fetchFromGitLab, + fetchpatch, + html2text, + lxml, + packaging, + pillow, + prettytable, + pycountry, + pytestCheckHook, + python-dateutil, + python-jose, + pythonOlder, + pyyaml, + requests, + rich, + setuptools, + testers, + unidecode, + woob, }: buildPythonPackage rec { @@ -35,18 +37,24 @@ buildPythonPackage rec { hash = "sha256-M9AjV954H1w64YGCVxDEGGSnoEbmocG3zwltob6IW04="; }; + patches = [ + (fetchpatch { + name = "no-deprecated-pkg_resources.patch"; + url = "https://gitlab.com/woob/woob/-/commit/3283c4c1a935cc71acea98b2d8c88bc4bf28f643.patch"; + hash = "sha256-3bRuv93ivKRxbGr52coO023DlxHZWwUeInXTPqQAeL8="; + }) + ]; + nativeBuildInputs = [ setuptools - pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "packaging" - ]; + pythonRelaxDeps = [ "packaging" ]; propagatedBuildInputs = [ babel python-dateutil + python-jose html2text lxml packaging @@ -59,9 +67,7 @@ buildPythonPackage rec { unidecode ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require networking @@ -69,9 +75,7 @@ buildPythonPackage rec { "test_verify" ]; - pythonImportsCheck = [ - "woob" - ]; + pythonImportsCheck = [ "woob" ]; passthru.tests.version = testers.testVersion { package = woob; |