Merge pull request #128623 from dotlambda/smart-meter-texas-init

This commit is contained in:
Sandro 2021-06-30 01:00:35 +02:00 committed by GitHub
commit d23fa41ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 1 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiohttp
, python-dateutil
, tenacity
}:
buildPythonPackage rec {
pname = "smart-meter-texas";
version = "0.4.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "grahamwetzler";
repo = "smart-meter-texas";
rev = "v${version}";
sha256 = "09n03wbyjh1b1gsiibf17fg86x7k1i1r1kpp94p7w1lcdbmn8v5c";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
propagatedBuildInputs = [
aiohttp
python-dateutil
tenacity
];
# no tests implemented
doCheck = false;
meta = with lib; {
description = "Connect to and retrieve data from the unofficial Smart Meter Texas API";
homepage = "https://github.com/grahamwetzler/smart-meter-texas";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View File

@ -767,7 +767,7 @@
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api
"sma" = ps: with ps; [ pysma ];
"smappee" = ps: with ps; [ aiohttp-cors pysmappee ];
"smart_meter_texas" = ps: with ps; [ ]; # missing inputs: smart-meter-texas
"smart_meter_texas" = ps: with ps; [ smart-meter-texas ];
"smarthab" = ps: with ps; [ smarthab ];
"smartthings" = ps: with ps; [ aiohttp-cors hass-nabucasa pysmartapp pysmartthings ];
"smarttub" = ps: with ps; [ python-smarttub ];

View File

@ -658,6 +658,7 @@ in with py.pkgs; buildPythonApplication rec {
"sleepiq"
"sma"
"smappee"
"smart_meter_texas"
"smarthab"
"smartthings"
"smarttub"

View File

@ -7990,6 +7990,8 @@ in {
sly = callPackage ../development/python-modules/sly { };
smart-meter-texas = callPackage ../development/python-modules/smart-meter-texas { };
smart-open = callPackage ../development/python-modules/smart-open { };
smarthab = callPackage ../development/python-modules/smarthab { };