at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 pytest-mock, 8}: 9 10buildPythonPackage rec { 11 pname = "ssdpy"; 12 version = "0.4.1"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "MoshiBin"; 17 repo = "ssdpy"; 18 rev = version; 19 hash = "sha256-luOanw4aOepGxoGtmnWZosq9JyHLJb3E+25tPkkL1w0="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 pytest-mock 27 ]; 28 29 pythonImportsCheck = [ "ssdpy" ]; 30 31 disabledTests = [ 32 # They all require network access 33 "test_client_json_output" 34 "test_discover" 35 "test_server_ipv4" 36 "test_server_ipv6" 37 "test_server_binds_iface" 38 "test_server_bind_address_ipv6" 39 "test_server_extra_fields" 40 ]; 41 42 meta = with lib; { 43 changelog = "https://github.com/MoshiBin/ssdpy/releases/tag/${version}"; 44 description = "Lightweight, compatible SSDP library for Python"; 45 homepage = "https://github.com/MoshiBin/ssdpy"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ mjm ]; 48 }; 49}