Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies scapy,
# tests pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "aiodhcpwatcher"; version = "1.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "bdraco"; repo = "aiodhcpwatcher"; rev = "v${version}"; hash = "sha256-Jyaxqs3vckXmqUNhYFA912abDhtZ9UBgGnm+qw/N9Ws="; };
postPatch = '' sed -i "/addopts =/d" pyproject.toml '';
build-system = [ poetry-core ];
dependencies = [ scapy ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
preCheck = '' export HOME=$TMPDIR '';
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.asl20; maintainers = with maintainers; [ hexa ]; platforms = platforms.linux; };}