diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-22 13:24:40 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-01-22 07:39:44 -0800 |
commit | 01cb602043489f8d10874be888f500b02bb5c3d6 (patch) | |
tree | 5cae9f4fa60a7deb5922faa2d261bdc82bce8658 /pkgs/development/python-modules | |
parent | 82f32abe7d7b3a2beffe4d4ad9b2cc38b1f3bf33 (diff) | |
download | nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar.gz nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar.bz2 nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar.lz nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar.xz nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.tar.zst nixlib-01cb602043489f8d10874be888f500b02bb5c3d6.zip |
python3Packages.hass-nabucasa: update test part
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/hass-nabucasa/default.nix | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 326da651b018..102ab3a2540c 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -1,6 +1,17 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, acme, aiohttp, snitun, attrs, pycognito, warrant -, pytest-aiohttp, asynctest, atomicwrites, pytest }: +{ lib +, acme +, aiohttp +, asynctest +, atomicwrites +, attrs +, buildPythonPackage +, fetchFromGitHub +, pycognito +, pytest-aiohttp +, pytestCheckHook +, snitun +, warrant +}: buildPythonPackage rec { pname = "hass-nabucasa"; @@ -15,19 +26,25 @@ buildPythonPackage rec { postPatch = '' sed -i 's/"acme.*"/"acme"/' setup.py - sed -i 's/"attrs.*"/"attrs"/' setup.py - sed -i 's/"cryptography.*"/"cryptography"/' setup.py ''; propagatedBuildInputs = [ - acme aiohttp atomicwrites snitun attrs warrant pycognito + acme + aiohttp + atomicwrites + attrs + pycognito + snitun + warrant ]; - checkInputs = [ pytest pytest-aiohttp asynctest ]; + checkInputs = [ + asynctest + pytest-aiohttp + pytestCheckHook + ]; - checkPhase = '' - pytest tests/ - ''; + pythonImportsCheck = [ "hass_nabucasa" ]; meta = with lib; { homepage = "https://github.com/NabuCasa/hass-nabucasa"; |