summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiodiscover
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-13 22:17:25 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-13 22:17:25 +0200
commit8f7356a9bf996e89ae26c67aa5651c12aa3802b5 (patch)
treeb0925359275beb990937072a95cb7ae93b7ba41e /pkgs/development/python-modules/aiodiscover
parent54ecd5246d22278efc765297b63bde572f814408 (diff)
downloadnixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar.gz
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar.bz2
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar.lz
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar.xz
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.tar.zst
nixpkgs-8f7356a9bf996e89ae26c67aa5651c12aa3802b5.zip
python3Packages.aiodiscover: 1.3.3 -> 1.3.4
Diffstat (limited to 'pkgs/development/python-modules/aiodiscover')
-rw-r--r--pkgs/development/python-modules/aiodiscover/default.nix25
1 files changed, 19 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/aiodiscover/default.nix b/pkgs/development/python-modules/aiodiscover/default.nix
index e724d53bfe7..8a7f72f8b86 100644
--- a/pkgs/development/python-modules/aiodiscover/default.nix
+++ b/pkgs/development/python-modules/aiodiscover/default.nix
@@ -2,22 +2,23 @@
 , async-dns
 , buildPythonPackage
 , fetchFromGitHub
-, fetchpatch
 , ifaddr
 , pyroute2
+, pytest-asyncio
+, pytestCheckHook
 , pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "aiodiscover";
-  version = "1.3.3";
+  version = "1.3.4";
   disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "bdraco";
     repo = pname;
     rev = "v${version}";
-    sha256 = "186agrjx818vn00d3pqlka5ir48rgpbfyn1cifkn9ylsxg9cz3ph";
+    sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag=";
   };
 
   propagatedBuildInputs = [
@@ -30,9 +31,21 @@ buildPythonPackage rec {
     substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
   '';
 
-  # Tests require access to /etc/resolv.conf
-  # pythonImportsCheck doesn't work as async-dns wants to create its CONFIG_DIR
-  doCheck = false;
+  checkInputs = [
+    pytest-asyncio
+    pytestCheckHook
+  ];
+
+  preBuild = ''
+    export HOME=$TMPDIR
+  '';
+
+  disabledTests = [
+    # Tests require access to /etc/resolv.conf
+    "test_async_discover_hosts"
+  ];
+
+  pythonImportsCheck = ["aiodiscover"];
 
   meta = with lib; {
     description = "Python module to discover hosts via ARP and PTR lookup";