git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.aiodiscover: 1.3.3 -> 1.3.4
commit8f7356a9bf996e89ae26c67aa5651c12aa3802b5 authorFabian Affolter <mail@fabian-affolter.ch> dateTue 13 Apr 2021, 22:17 (6 years ago) parent54ecd52
1 file changed+19−6
pkgs/development/python-modules/aiodiscover/default.nix+19−6
pkgs/development/python-modules/aiodiscover/default.nix+19−6
@@ -2,22 +2,23 @@
22, async-dns
33, buildPythonPackage
44, fetchFromGitHub
5−, fetchpatch
65, ifaddr
76, pyroute2
7+, pytest-asyncio
8+, pytestCheckHook
89, pythonOlder
910}:
1011
1112buildPythonPackage rec {
1213 pname = "aiodiscover";
13− version = "1.3.3";
14+ version = "1.3.4";
1415 disabled = pythonOlder "3.7";
1516
1617 src = fetchFromGitHub {
1718 owner = "bdraco";
1819 repo = pname;
1920 rev = "v${version}";
20− sha256 = "186agrjx818vn00d3pqlka5ir48rgpbfyn1cifkn9ylsxg9cz3ph";
21+ sha256 = "sha256-TmWl5d5HwyqWPUjwtEvc5FzVfxV/K1pekljcMkGN0Ag=";
2122 };
2223
2324 propagatedBuildInputs = [
@@ -30,9 +31,21 @@ buildPythonPackage rec {
3031 substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
3132 '';
3233
33− # Tests require access to /etc/resolv.conf
34− # pythonImportsCheck doesn't work as async-dns wants to create its CONFIG_DIR
35− doCheck = false;
34+ checkInputs = [
35+ pytest-asyncio
36+ pytestCheckHook
37+ ];
38+
39+ preBuild = ''
40+ export HOME=$TMPDIR
41+ '';
42+
43+ disabledTests = [
44+ # Tests require access to /etc/resolv.conf
45+ "test_async_discover_hosts"
46+ ];
47+
48+ pythonImportsCheck = ["aiodiscover"];
3649
3750 meta = with lib; {
3851 description = "Python module to discover hosts via ARP and PTR lookup";