python310Packages.tesla-powerwall: 0.3.17 -> 0.3.18

- use GitHub as source (on PyPI is now only wheel available)
This commit is contained in:
Fabian Affolter 2022-06-27 09:21:33 +02:00
parent 3f4f135736
commit 8699200898

View file

@ -1,21 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, responses
}:
buildPythonPackage rec {
pname = "tesla-powerwall";
version = "0.3.17";
version = "0.3.18";
format = "setuptools";
src = fetchPypi {
pname = "tesla_powerwall";
inherit version;
sha256 = "09351e408e8e3cc03414944c1a487ef2178300829559e80835026acb84330cfd";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jrester";
repo = "tesla_powerwall";
rev = "v${version}";
hash = "sha256-Z+axzTiKDgJqGhl2c6g7N1AbmXO46lbaHVOXhMstoCY=";
};
propagatedBuildInputs = [
@ -31,12 +34,14 @@ buildPythonPackage rec {
"tests/unit"
];
pythonImportsCheck = [ "tesla_powerwall" ];
pythonImportsCheck = [
"tesla_powerwall"
];
meta = {
meta = with lib; {
description = "API for Tesla Powerwall";
homepage = "https://github.com/jrester/tesla_powerwall";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}