python311Packages.aiodhcpwatcher: init at 0.8.0

This commit is contained in:
Martin Weinelt 2024-03-07 02:09:26 +01:00
parent 7102da2d7c
commit 931dfbeb51
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, poetry-core
# dependencies
, scapy
# tests
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiodhcpwatcher";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiodhcpwatcher";
rev = "v${version}";
hash = "sha256-zZigXYUDSbXjlH810CgLa56xWYKcStBeKUbgsZ5WjOw=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [
poetry-core
];
dependencies = [
scapy
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"aiodhcpwatcher"
];
meta = with lib; {
description = "Watch for DHCP packets with asyncio";
homepage = "https://github.com/bdraco/aiodhcpwatcher";
changelog = "https://github.com/bdraco/aiodhcpwatcher/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -193,6 +193,8 @@ self: super: with self; {
aiocurrencylayer = callPackage ../development/python-modules/aiocurrencylayer { };
aiodhcpwatcher = callPackage ../development/python-modules/aiodhcpwatcher { };
aiodiscover = callPackage ../development/python-modules/aiodiscover { };
aiodns = callPackage ../development/python-modules/aiodns { };