nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 47 lines 1.1 kB view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, ifaddr 6, pythonOlder 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "zeroconf"; 12 version = "0.31.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-U6GAJIRxxvgb0f/8vOA+2T19jq8QkFyRIaweqZbRmEQ="; 18 }; 19 20 propagatedBuildInputs = [ ifaddr ]; 21 22 checkInputs = [ pytestCheckHook ]; 23 24 pytestFlagsArray = [ "zeroconf/test.py" ]; 25 26 disabledTests = [ 27 # disable tests that expect some sort of networking in the build container 28 "test_close_multiple_times" 29 "test_launch_and_close" 30 "test_launch_and_close_v4_v6" 31 "test_launch_and_close_v6_only" 32 "test_integration_with_listener_ipv6" 33 ] ++ lib.optionals stdenv.isDarwin [ 34 "test_lots_of_names" 35 ]; 36 37 __darwinAllowLocalNetworking = true; 38 39 pythonImportsCheck = [ "zeroconf" ]; 40 41 meta = with lib; { 42 description = "Python implementation of multicast DNS service discovery"; 43 homepage = "https://github.com/jstasiak/python-zeroconf"; 44 license = licenses.lgpl21Only; 45 maintainers = with maintainers; [ abbradar ]; 46 }; 47}