nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, graphviz
5, appdirs
6, ifaddr
7, pythonOlder
8, mock
9, nix-update-script
10, pytestCheckHook
11, requests
12, requests-mock
13, xmltodict
14}:
15
16buildPythonPackage rec {
17 pname = "soco";
18 version = "0.27.1";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchFromGitHub {
24 owner = "SoCo";
25 repo = "SoCo";
26 rev = "v${version}";
27 hash = "sha256-8U7wfxqen+hgK8j9ooPHCAKvd9kSZicToTyP7XzQFrg=";
28 };
29
30 propagatedBuildInputs = [
31 appdirs
32 ifaddr
33 requests
34 xmltodict
35 ];
36
37 checkInputs = [
38 pytestCheckHook
39 graphviz
40 mock
41 requests-mock
42 ];
43
44 pythonImportsCheck = [
45 "soco"
46 ];
47
48 passthru.updateScript = nix-update-script {
49 attrPath = "python3Packages.${pname}";
50 };
51
52 meta = with lib; {
53 description = "CLI and library to control Sonos speakers";
54 homepage = "http://python-soco.com/";
55 license = licenses.mit;
56 maintainers = with maintainers; [ lovesegfault ];
57 };
58}