@@ -2,22 +2,23 @@
3, buildPythonPackage
3, buildPythonPackage
4, fetchFromGitHub
4, fetchFromGitHub
8, pythonOlder
9, pythonOlder
11buildPythonPackage rec {
12buildPythonPackage rec {
12 pname = "aiodiscover";
13 pname = "aiodiscover";
13− version = "1.3.3";
14+ version = "1.3.4";
14 disabled = pythonOlder "3.7";
15 disabled = pythonOlder "3.7";
16 src = fetchFromGitHub {
17 src = fetchFromGitHub {
17 owner = "bdraco";
18 owner = "bdraco";
18 repo = pname;
19 repo = pname;
19 rev = "v${version}";
20 rev = "v${version}";
20− sha256 = "186agrjx818vn00d3pqlka5ir48rgpbfyn1cifkn9ylsxg9cz3ph";
21+ sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag=";
23 propagatedBuildInputs = [
24 propagatedBuildInputs = [
@@ -30,9 +31,21 @@ buildPythonPackage rec {
30 substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
31 substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
33− # Tests require access to /etc/resolv.conf
44+ # Tests require access to /etc/resolv.conf
34− # pythonImportsCheck doesn't work as async-dns wants to create its CONFIG_DIR
45+ "test_async_discover_hosts"
35− doCheck = false;
46+ ];
48+ pythonImportsCheck = ["aiodiscover"];
37 meta = with lib; {
50 meta = with lib; {
38 description = "Python module to discover hosts via ARP and PTR lookup";
51 description = "Python module to discover hosts via ARP and PTR lookup";