summary refs log tree commit diff
path: root/pkgs/development/python-modules/tesla-wall-connector/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/tesla-wall-connector/default.nix')
-rw-r--r--pkgs/development/python-modules/tesla-wall-connector/default.nix27
1 files 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 8aaaa2cb0fa..e814f01320e 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"