|
|
|
@ -32,6 +32,9 @@ let |
|
|
|
|
(mkOverride "pyowm" "2.10.0" |
|
|
|
|
"1xvcv3sbcn9na8cwz21nnjlixysfk5lymnf65d1nqkbgacc1mm4g") |
|
|
|
|
|
|
|
|
|
(mkOverride "bcrypt" "3.1.7" |
|
|
|
|
"0hhywhxx301cxivgxrpslrangbfpccc8y83qbwn1f57cab3nj00b") |
|
|
|
|
|
|
|
|
|
# required by aioesphomeapi |
|
|
|
|
(self: super: { |
|
|
|
|
protobuf = super.protobuf.override { |
|
|
|
@ -94,6 +97,11 @@ in with py.pkgs; buildPythonApplication rec { |
|
|
|
|
sha256 = "0g7jwhdvdcam7gvrj72aknrsvdwm5i5hs93nngqm26m1g4sng0ma"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
--replace "yarl==1.4.2" "yarl~=1.4" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
# From setup.py |
|
|
|
|
aiohttp astral async-timeout attrs bcrypt certifi importlib-metadata jinja2 |
|
|
|
@ -114,9 +122,14 @@ in with py.pkgs; buildPythonApplication rec { |
|
|
|
|
# - components' dependencies are not included, so they cannot be tested |
|
|
|
|
# - test_merge_id_schema requires pyqwikswitch |
|
|
|
|
# - test_loader.py tries to load not-packaged dependencies |
|
|
|
|
# - test_notify pyotp doesn't like the short mock keys |
|
|
|
|
# - unclear why test_merge fails: assert merge_log_err.call_count != 0 |
|
|
|
|
# - test_setup_safe_mode_if_no_frontend: requires dependencies for components we have not packaged |
|
|
|
|
py.test --ignore tests/components --ignore tests/test_loader.py -k "not test_setup_safe_mode_if_no_frontend and not test_merge_id_schema and not test_merge" |
|
|
|
|
py.test \ |
|
|
|
|
--ignore tests/components \ |
|
|
|
|
--ignore tests/test_loader.py \ |
|
|
|
|
--ignore tests/auth/mfa_modules/test_notify.py \ |
|
|
|
|
-k "not test_setup_safe_mode_if_no_frontend and not test_merge_id_schema and not test_merge" |
|
|
|
|
|
|
|
|
|
# Some basic components should be tested however |
|
|
|
|
py.test \ |
|
|
|
|