diff --git a/pkgs/development/python-modules/aionut/default.nix b/pkgs/development/python-modules/aionut/default.nix new file mode 100644 index 000000000000..8c9b8038ce99 --- /dev/null +++ b/pkgs/development/python-modules/aionut/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 79064920c0a9..b338ba2b2834 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };