3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/soco/default.nix
2021-08-09 08:34:47 +02:00

53 lines
933 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, graphviz
, ifaddr
, pythonOlder
, mock
, nix-update-script
, pytestCheckHook
, requests
, requests-mock
, xmltodict
}:
buildPythonPackage rec {
pname = "soco";
version = "0.23.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "SoCo";
repo = "SoCo";
rev = "v${version}";
sha256 = "sha256-T6gDImH/HfHg8e1YzUYB8zr2GJHRtF6vdYm2cSiXSb0=";
};
propagatedBuildInputs = [
ifaddr
requests
xmltodict
];
checkInputs = [
pytestCheckHook
graphviz
mock
requests-mock
];
pythonImportsCheck = [ "soco" ];
passthru.updateScript = nix-update-script {
attrPath = "python3Packages.${pname}";
};
meta = with lib; {
homepage = "http://python-soco.com/";
description = "A CLI and library to control Sonos speakers";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}