From b12ed5c4df7110f29cec10b691bb8a8805c33a73 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 9 Dec 2021 21:00:35 +0100 Subject: [PATCH] python3Packages.tesla-wall-connector: 1.0.0 -> 1.0.1 --- .../tesla-wall-connector/default.nix | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/tesla-wall-connector/default.nix b/pkgs/development/python-modules/tesla-wall-connector/default.nix index 8aaaa2cb0fad..e814f01320e4 100644 --- a/pkgs/development/python-modules/tesla-wall-connector/default.nix +++ b/pkgs/development/python-modules/tesla-wall-connector/default.nix @@ -1,25 +1,28 @@ { lib , aiohttp -, backoff , aioresponses +, aresponses +, backoff , buildPythonPackage -, fetchPypi -, pytest-aiohttp -, pytestCheckHook +, fetchFromGitHub , poetry-core +, pytest-asyncio +, pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "tesla-wall-connector"; - version = "1.0.0"; + version = "1.0.1"; format = "pyproject"; disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - sha256 = "PVgM6tC8jy/tXytkAVC0Y4Oatap5YFA3vpkUgAdyTxM="; + src = fetchFromGitHub { + owner = "einarhauks"; + repo = pname; + rev = version; + sha256 = "sha256-JBtlGd9aHY8ikhpJ5v7ZcNu3BfLdBmOBZCMa6C0s6gE="; }; nativeBuildInputs = [ @@ -31,8 +34,12 @@ buildPythonPackage rec { backoff ]; - # https://github.com/einarhauks/tesla-wall-connector/issues/1 - doCheck = false; + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + pythonImportsCheck = [ "tesla_wall_connector"