diff options
author | Nick Cao <nickcao@nichi.co> | 2024-05-12 11:19:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 11:19:54 -0400 |
commit | e55b9e6516bc4ef1fa5341240b5c07805b17c6f5 (patch) | |
tree | 02e2c6c55d0a94f9e1e65baa3465f46949e3e538 /pkgs/development | |
parent | 5185383fc114cda988f116adb077beff22a816b6 (diff) | |
parent | 964f774eeb8132eff7dc9d791591b729b6e3eb37 (diff) |
Merge pull request #311063 from fabaff/oemthermostat-refactor
python312Packages.oemthermostat: refactor
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/oemthermostat/default.nix | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/oemthermostat/default.nix b/pkgs/development/python-modules/oemthermostat/default.nix index f40e39f10bf63..154a3f7f1e6b3 100644 --- a/pkgs/development/python-modules/oemthermostat/default.nix +++ b/pkgs/development/python-modules/oemthermostat/default.nix @@ -1,45 +1,39 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools-scm, }: 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 = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - propagatedBuildInputs = [ - requests - ]; + dependencies = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "oemthermostat" - ]; + pythonImportsCheck = [ "oemthermostat" ]; 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 ]; }; |