python311Packages.aionut: init at 4.3.2

Asyncio Network UPS Tools

https://github.com/bdraco/aionut
This commit is contained in:
Fabian Affolter 2024-04-03 21:25:09 +02:00 committed by Martin Weinelt
parent 61b8fc92b3
commit 141dcf1ddc
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aionut";
version = "4.3.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aionut";
rev = "refs/tags/v${version}";
hash = "sha256-QehVC/6RbWp8KnOuVtLFkK8/STTgHXkXmFbSmzu9z7w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=aionut --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aionut" ];
meta = with lib; {
description = "Asyncio Network UPS Tools";
homepage = "https://github.com/bdraco/aionut";
changelog = "https://github.com/bdraco/aionut/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -327,6 +327,8 @@ self: super: with self; {
aionotion = callPackage ../development/python-modules/aionotion { };
aionut = callPackage ../development/python-modules/aionut { };
aiooncue = callPackage ../development/python-modules/aiooncue { };
aioopenexchangerates = callPackage ../development/python-modules/aioopenexchangerates { };