Merge pull request #146803 from fabaff/oemthermostat

python3Packages.oemthermostat: init at 1.1.1
This commit is contained in:
Fabian Affolter 2021-11-22 09:43:33 +01:00 committed by GitHub
commit 0634469e67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "oemthermostat";
version = "1.1.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Cadair";
repo = "openenergymonitor_thermostat";
rev = "v${version}";
sha256 = "vrMw3/X8MtejO1WyUA1DOlfVCPTCPgcK5p3+OlTWcM4=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"oemthermostat"
];
meta = with lib; {
description = "Python module to interact with OpenEnergyMonitor thermostats";
homepage = "https://github.com/Cadair/openenergymonitor_thermostat";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -597,7 +597,7 @@
"oasa_telematics" = ps: with ps; [ ]; # missing inputs: oasatelematics
"obihai" = ps: with ps; [ pyobihai ];
"octoprint" = ps: with ps; [ ]; # missing inputs: pyoctoprintapi
"oem" = ps: with ps; [ ]; # missing inputs: oemthermostat
"oem" = ps: with ps; [ oemthermostat ];
"ohmconnect" = ps: with ps; [ defusedxml ];
"ombi" = ps: with ps; [ pyombi ];
"omnilogic" = ps: with ps; [ omnilogic ];

View file

@ -5309,6 +5309,8 @@ in {
ofxtools = callPackage ../development/python-modules/ofxtools { };
oemthermostat = callPackage ../development/python-modules/oemthermostat { };
olefile = callPackage ../development/python-modules/olefile { };
omegaconf = callPackage ../development/python-modules/omegaconf { };