Merge pull request #146803 from fabaff/oemthermostat
python3Packages.oemthermostat: init at 1.1.1
This commit is contained in:
commit
0634469e67
3 changed files with 51 additions and 1 deletions
48
pkgs/development/python-modules/oemthermostat/default.nix
Normal file
48
pkgs/development/python-modules/oemthermostat/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue