at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 flit-core, 7 flit-scm, 8 pygments, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "ssdp"; 16 version = "1.3.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "codingjoe"; 23 repo = "ssdp"; 24 tag = version; 25 hash = "sha256-HsU67vsJvoVyOy2QEq8leYcjl1EVdQ039jN1QyL0XgU="; 26 }; 27 28 build-system = [ 29 flit-core 30 flit-scm 31 ]; 32 33 optional-dependencies = { 34 cli = [ 35 click 36 pygments 37 ]; 38 pygments = [ pygments ]; 39 }; 40 41 nativeCheckInputs = [ 42 pytest-cov-stub 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ "ssdp" ]; 47 48 meta = with lib; { 49 description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)"; 50 homepage = "https://github.com/codingjoe/ssdp"; 51 changelog = "https://github.com/codingjoe/ssdp/releases/tag/${src.tag}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 mainProgram = "ssdp"; 55 }; 56}