python312Packages.oemthermostat: refactor

This commit is contained in:
Fabian Affolter
2024-05-12 15:18:04 +02:00
parent 6e5ddb4326
commit 01ec2ee0e7
@@ -10,22 +10,22 @@
buildPythonPackage rec {
pname = "oemthermostat";
version = "1.1.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Cadair";
repo = "openenergymonitor_thermostat";
rev = "v${version}";
sha256 = "vrMw3/X8MtejO1WyUA1DOlfVCPTCPgcK5p3+OlTWcM4=";
rev = "refs/tags/v${version}";
hash = "sha256-vrMw3/X8MtejO1WyUA1DOlfVCPTCPgcK5p3+OlTWcM4=";
};
nativeBuildInputs = [
build-system = [
setuptools-scm
];
propagatedBuildInputs = [
dependencies = [
requests
];
@@ -40,6 +40,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to interact with OpenEnergyMonitor thermostats";
homepage = "https://github.com/Cadair/openenergymonitor_thermostat";
changelog = "https://github.com/Cadair/openenergymonitor_thermostat/blob/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};