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-03 18:56:45 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-03 12:48:46 -0800
commit6af367e180c33b74c8e655da6c87cd65f2c19636 (patch)
tree91903012fb598e3bf4e648f8324fc80cbd6ffea2 /pkgs/development/python-modules/tesla-wall-connector
parentdd15c5cec80ce18e47ac69be04869bf1534328df (diff)
python3Packages.tesla-wall-connector: init at 1.0.0
Diffstat (limited to 'pkgs/development/python-modules/tesla-wall-connector')
-rw-r--r--pkgs/development/python-modules/tesla-wall-connector/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tesla-wall-connector/default.nix b/pkgs/development/python-modules/tesla-wall-connector/default.nix
new file mode 100644
index 0000000000000..8aaaa2cb0fadc
--- /dev/null
+++ b/pkgs/development/python-modules/tesla-wall-connector/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, aiohttp
+, backoff
+, aioresponses
+, buildPythonPackage
+, fetchPypi
+, pytest-aiohttp
+, pytestCheckHook
+, poetry-core
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "tesla-wall-connector";
+  version = "1.0.0";
+  format = "pyproject";
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "PVgM6tC8jy/tXytkAVC0Y4Oatap5YFA3vpkUgAdyTxM=";
+  };
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    aiohttp
+    backoff
+  ];
+
+  # https://github.com/einarhauks/tesla-wall-connector/issues/1
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "tesla_wall_connector"
+  ];
+
+  meta = with lib; {
+    description = "Python library for communicating with a Tesla Wall Connector";
+    homepage = "https://github.com/einarhauks/tesla-wall-connector";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}