python310Packages.tesla-powerwall: 0.3.17 -> 0.3.18

- use GitHub as source (on PyPI is now only wheel available)
main
Fabian Affolter 2 years ago
parent 3f4f135736
commit 8699200898
  1. 29
      pkgs/development/python-modules/tesla-powerwall/default.nix

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

Loading…
Cancel
Save