nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 994 B 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}: 12 13buildPythonPackage rec { 14 pname = "ssdp"; 15 version = "1.3.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "codingjoe"; 20 repo = "ssdp"; 21 tag = version; 22 hash = "sha256-HsU67vsJvoVyOy2QEq8leYcjl1EVdQ039jN1QyL0XgU="; 23 }; 24 25 build-system = [ 26 flit-core 27 flit-scm 28 ]; 29 30 optional-dependencies = { 31 cli = [ 32 click 33 pygments 34 ]; 35 pygments = [ pygments ]; 36 }; 37 38 nativeCheckInputs = [ 39 pytest-cov-stub 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "ssdp" ]; 44 45 meta = { 46 description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)"; 47 homepage = "https://github.com/codingjoe/ssdp"; 48 changelog = "https://github.com/codingjoe/ssdp/releases/tag/${src.tag}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 mainProgram = "ssdp"; 52 }; 53}