python3Packages.oemthermostat: init at 1.1.1

This commit is contained in:
Fabian Affolter 2021-11-20 22:12:53 +01:00
parent 293e6f0ce5
commit 6e64297712
2 changed files with 50 additions and 0 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

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