1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 08:59:20 +03:00
nixpkgs/pkgs/development/python-modules/soco/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
983 B
Nix
Raw Normal View History

2021-05-27 00:34:25 +02:00
{ lib
, buildPythonPackage
2020-12-08 16:28:41 -08:00
, fetchFromGitHub
, graphviz
2022-02-02 21:22:00 +01:00
, appdirs
2021-02-28 20:13:04 -08:00
, ifaddr
2021-05-27 00:34:25 +02:00
, pythonOlder
2020-12-08 16:28:41 -08:00
, mock
2021-02-28 20:13:04 -08:00
, nix-update-script
2020-12-08 16:28:41 -08:00
, pytestCheckHook
, requests
2021-02-28 20:13:04 -08:00
, requests-mock
2020-12-08 16:28:41 -08:00
, xmltodict
}:
buildPythonPackage rec {
pname = "soco";
2022-03-02 21:59:36 +01:00
version = "0.26.4";
2022-02-19 15:19:37 +01:00
format = "setuptools";
2021-05-27 00:34:25 +02:00
disabled = pythonOlder "3.6";
2020-12-08 16:28:41 -08:00
src = fetchFromGitHub {
owner = "SoCo";
repo = "SoCo";
rev = "v${version}";
2022-03-02 21:59:36 +01:00
hash = "sha256-DoONq6Iqi8t47jtqggKYMHSNJAf/Kha3tszR6mYeB9Y=";
};
2020-12-08 16:28:41 -08:00
propagatedBuildInputs = [
2022-02-02 21:22:00 +01:00
appdirs
2021-02-28 20:13:04 -08:00
ifaddr
2020-12-08 16:28:41 -08:00
requests
xmltodict
];
2021-02-28 20:13:04 -08:00
checkInputs = [
2020-12-08 16:28:41 -08:00
pytestCheckHook
graphviz
mock
2021-02-28 20:13:04 -08:00
requests-mock
];
2022-02-19 15:19:37 +01:00
pythonImportsCheck = [
"soco"
];
2021-05-27 00:34:25 +02:00
2021-02-28 20:13:04 -08:00
passthru.updateScript = nix-update-script {
attrPath = "python3Packages.${pname}";
};
2020-12-08 16:28:41 -08:00
meta = with lib; {
2022-02-19 15:19:37 +01:00
description = "CLI and library to control Sonos speakers";
2020-04-07 07:27:14 +00:00
homepage = "http://python-soco.com/";
2020-12-08 16:28:41 -08:00
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}