Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 55 lines 956 B view raw
1{ 2 lib, 3 appdirs, 4 buildPythonPackage, 5 fetchFromGitHub, 6 graphviz, 7 ifaddr, 8 lxml, 9 mock, 10 pytestCheckHook, 11 requests, 12 requests-mock, 13 setuptools, 14 xmltodict, 15}: 16 17buildPythonPackage rec { 18 pname = "soco"; 19 version = "0.30.14"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "SoCo"; 24 repo = "SoCo"; 25 tag = "v${version}"; 26 hash = "sha256-b9VOYOu2rkLOSEwKxXko08sFPRiUspm5iTLZu0j92rc="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 appdirs 33 ifaddr 34 lxml 35 requests 36 xmltodict 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 graphviz 42 mock 43 requests-mock 44 ]; 45 46 pythonImportsCheck = [ "soco" ]; 47 48 meta = { 49 description = "CLI and library to control Sonos speakers"; 50 homepage = "http://python-soco.com/"; 51 changelog = "https://github.com/SoCo/SoCo/releases/tag/${src.tag}"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ lovesegfault ]; 54 }; 55}