python311Packages.aionut: init at 4.3.2
Asyncio Network UPS Tools https://github.com/bdraco/aionut
This commit is contained in:
parent
61b8fc92b3
commit
141dcf1ddc
46
pkgs/development/python-modules/aionut/default.nix
Normal file
46
pkgs/development/python-modules/aionut/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -327,6 +327,8 @@ self: super: with self; {
|
||||||
|
|
||||||
aionotion = callPackage ../development/python-modules/aionotion { };
|
aionotion = callPackage ../development/python-modules/aionotion { };
|
||||||
|
|
||||||
|
aionut = callPackage ../development/python-modules/aionut { };
|
||||||
|
|
||||||
aiooncue = callPackage ../development/python-modules/aiooncue { };
|
aiooncue = callPackage ../development/python-modules/aiooncue { };
|
||||||
|
|
||||||
aioopenexchangerates = callPackage ../development/python-modules/aioopenexchangerates { };
|
aioopenexchangerates = callPackage ../development/python-modules/aioopenexchangerates { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user