depot/third_party/nixpkgs/pkgs/development/python-modules/soco/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

52 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.24.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "SoCo";
repo = "SoCo";
rev = "v${version}";
sha256 = "sha256-3VL2JFlukfQdjTP65X40OOsuCUVsY9kuvRKUZ3qEd+s=";
};
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 ];
};
}