{ lib, buildPythonPackage, click, fetchFromGitHub, flit-core, flit-scm, pygments, pytest-cov-stub, pytestCheckHook, pythonOlder, }: buildPythonPackage rec { pname = "ssdp"; version = "1.3.1"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "codingjoe"; repo = "ssdp"; tag = version; hash = "sha256-HsU67vsJvoVyOy2QEq8leYcjl1EVdQ039jN1QyL0XgU="; }; build-system = [ flit-core flit-scm ]; optional-dependencies = { cli = [ click pygments ]; pygments = [ pygments ]; }; nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ]; pythonImportsCheck = [ "ssdp" ]; meta = with lib; { description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)"; homepage = "https://github.com/codingjoe/ssdp"; changelog = "https://github.com/codingjoe/ssdp/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; mainProgram = "ssdp"; }; }