depot/third_party/nixpkgs/pkgs/development/python-modules/soco/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

58 lines
983 B
Nix

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