python310Packages.bimmer-connected: provide test responses
in the package output, as home-assistant tests rely on them. Also enable more tests by providing pytest-asyncio.
This commit is contained in:
parent
de5fa879ed
commit
c85eef94d2
@ -7,9 +7,12 @@
|
|||||||
, httpx
|
, httpx
|
||||||
, pycryptodome
|
, pycryptodome
|
||||||
, pyjwt
|
, pyjwt
|
||||||
|
, pytest-asyncio
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, python
|
||||||
, respx
|
, respx
|
||||||
, time-machine
|
, time-machine
|
||||||
|
, tzdata
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -39,12 +42,21 @@ buildPythonPackage rec {
|
|||||||
pyjwt
|
pyjwt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp -R bimmer_connected/tests/responses $out/${python.sitePackages}/bimmer_connected/tests/
|
||||||
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
respx
|
respx
|
||||||
time-machine
|
time-machine
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export TZDIR=${tzdata}/${python.sitePackages}/tzdata/zoneinfo
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"bimmer_connected"
|
"bimmer_connected"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user