python3Packages.zeroconf: enable tests
This commit is contained in:
parent
23c1374bd7
commit
165595e92a
@ -1,11 +1,11 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, ifaddr
|
, ifaddr
|
||||||
, typing
|
, typing
|
||||||
, isPy27
|
, isPy27
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, python
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -19,16 +19,21 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ ifaddr ]
|
propagatedBuildInputs = [ ifaddr ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
||||||
|
|
||||||
# tests not included with pypi release
|
checkInputs = [ pytestCheckHook ];
|
||||||
doCheck = false;
|
pytestFlagsArray = [ "zeroconf/test.py" ];
|
||||||
|
disabledTests = [
|
||||||
|
# disable tests that expect some sort of networking in the build container
|
||||||
|
"test_launch_and_close"
|
||||||
|
"test_launch_and_close_v4_v6"
|
||||||
|
"test_launch_and_close_v6_only"
|
||||||
|
"test_integration_with_listener_ipv6"
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [ "zeroconf" ];
|
||||||
${python.interpreter} test_zeroconf.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A pure python implementation of multicast DNS service discovery";
|
description = "A pure python implementation of multicast DNS service discovery";
|
||||||
homepage = "https://github.com/jstasiak/python-zeroconf";
|
homepage = "https://github.com/jstasiak/python-zeroconf";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user