Merge pull request #185484 from fabaff/tesla-wall-connector-fix

This commit is contained in:
Martin Weinelt 2022-08-06 23:47:11 +02:00 committed by GitHub
commit 8c5f78fe99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "einarhauks";
repo = pname;
rev = version;
sha256 = "sha256-JBtlGd9aHY8ikhpJ5v7ZcNu3BfLdBmOBZCMa6C0s6gE=";
hash = "sha256-JBtlGd9aHY8ikhpJ5v7ZcNu3BfLdBmOBZCMa6C0s6gE=";
};
nativeBuildInputs = [
@ -40,13 +40,17 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'backoff = "^1.11.1"' 'backoff = "*"'
'';
pythonImportsCheck = [
"tesla_wall_connector"
];
meta = with lib; {
description = "Python library for communicating with a Tesla Wall Connector";
description = "Library for communicating with a Tesla Wall Connector";
homepage = "https://github.com/einarhauks/tesla-wall-connector";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];