python3Packages.aiodiscover: 1.3.3 -> 1.3.4

This commit is contained in:
Fabian Affolter 2021-04-13 22:17:25 +02:00
parent 54ecd5246d
commit 8f7356a9bf

View File

@ -2,22 +2,23 @@
, async-dns , async-dns
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, ifaddr , ifaddr
, pyroute2 , pyroute2
, pytest-asyncio
, pytestCheckHook
, pythonOlder , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiodiscover"; pname = "aiodiscover";
version = "1.3.3"; version = "1.3.4";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bdraco"; owner = "bdraco";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "186agrjx818vn00d3pqlka5ir48rgpbfyn1cifkn9ylsxg9cz3ph"; sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -30,9 +31,21 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace '"pytest-runner>=5.2",' "" substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
''; '';
# Tests require access to /etc/resolv.conf checkInputs = [
# pythonImportsCheck doesn't work as async-dns wants to create its CONFIG_DIR pytest-asyncio
doCheck = false; pytestCheckHook
];
preBuild = ''
export HOME=$TMPDIR
'';
disabledTests = [
# Tests require access to /etc/resolv.conf
"test_async_discover_hosts"
];
pythonImportsCheck = ["aiodiscover"];
meta = with lib; { meta = with lib; {
description = "Python module to discover hosts via ARP and PTR lookup"; description = "Python module to discover hosts via ARP and PTR lookup";