python312Packages.aioeagle: refactor

This commit is contained in:
Fabian Affolter 2024-04-23 09:16:13 +02:00
parent db176ef1d6
commit 722c517b1d
1 changed files with 13 additions and 6 deletions

View File

@ -3,24 +3,29 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, xmltodict
}:
buildPythonPackage rec {
pname = "aioeagle";
version = "1.1.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "117nb50cxwrixif2r6fxmr9v0jxkcamm816v48hbhyc660w6xvk4";
repo = "aioeagle";
rev = "refs/tags/${version}";
hash = "sha256-ZO5uODCGebggItsEVKtis0uwU67dmSxc7DHzzkBZ9oQ=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
aiohttp
xmltodict
];
@ -28,7 +33,9 @@ buildPythonPackage rec {
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "aioeagle" ];
pythonImportsCheck = [
"aioeagle"
];
meta = with lib; {
description = "Python library to control EAGLE-200";