about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tesla-wall-connector
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-09 21:00:35 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-09 18:07:12 -0800
commitb12ed5c4df7110f29cec10b691bb8a8805c33a73 (patch)
tree317bf247a34cca3b4af212369010ff79406b26ff /pkgs/development/python-modules/tesla-wall-connector
parent68c4b01f72fc1c473ee8b5b926d54bddcb7d84c3 (diff)
python3Packages.tesla-wall-connector: 1.0.0 -> 1.0.1
Diffstat (limited to 'pkgs/development/python-modules/tesla-wall-connector')
-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 8aaaa2cb0fadc..e814f01320e47 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"