depot/third_party/nixpkgs/pkgs/development/python-modules/snapcast/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

49 lines
953 B
Nix

{ lib
, buildPythonPackage
, construct
, packaging
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "snapcast";
version = "2.3.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "happyleavesaoc";
repo = "python-snapcast";
rev = "refs/tags/${version}";
hash = "sha256-IFgSO0PjlFb4XJarx50Xnx6dF4tBKk3sLcoLWVdpnk8=";
};
propagatedBuildInputs = [
construct
packaging
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"snapcast"
];
disabledTests = [
# AssertionError and TypeError
"test_stream_setmeta"
"est_stream_setproperty"
];
meta = with lib; {
description = "Control Snapcast, a multi-room synchronous audio solution";
homepage = "https://github.com/happyleavesaoc/python-snapcast/";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}