2021-03-16 23:08:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, construct
|
2021-04-22 20:05:01 +01:00
|
|
|
, fetchFromGitHub
|
2021-03-16 23:08:40 +00:00
|
|
|
, isPy3k
|
2021-04-22 20:05:01 +01:00
|
|
|
, pytestCheckHook
|
2021-03-16 23:08:40 +00:00
|
|
|
}:
|
2018-10-19 08:46:04 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snapcast";
|
2021-04-22 20:05:01 +01:00
|
|
|
version = "2.1.3";
|
2018-10-19 08:46:04 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2021-04-22 20:05:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "happyleavesaoc";
|
|
|
|
repo = "python-snapcast";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1jigdccdd7bffszim942mxcwxyznfjx7y3r5yklz3psl7zgbzd6c";
|
2018-10-19 08:46:04 +01:00
|
|
|
};
|
|
|
|
|
2021-04-22 20:05:01 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
construct
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-19 08:46:04 +01:00
|
|
|
|
2021-03-16 23:08:40 +00:00
|
|
|
pythonImportsCheck = [ "snapcast" ];
|
2018-10-19 08:46:04 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-19 08:46:04 +01:00
|
|
|
description = "Control Snapcast, a multi-room synchronous audio solution";
|
2020-04-11 03:18:42 +01:00
|
|
|
homepage = "https://github.com/happyleavesaoc/python-snapcast/";
|
2018-10-19 08:46:04 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|