python312Packages.pydanfossair: refactor

This commit is contained in:
Fabian Affolter 2024-11-15 11:06:58 +01:00 committed by GitHub
parent 46bb97de2b
commit 4c268bad30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,27 +2,32 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "pydanfossair";
version = "0.3.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "JonasPed";
repo = "pydanfoss-air";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-ZTairxQbvijNiSomDoeZtmL/Hn3ce1Z5TEOf+0C8cYg=";
};
build-system = [ setuptools ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pydanfossair" ];
meta = with lib; {
description = "Python interface for Danfoss Air HRV systems";
homepage = "https://github.com/JonasPed/pydanfoss-air";
changelog = "https://github.com/JonasPed/pydanfoss-air/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};