depot/third_party/nixpkgs/pkgs/development/python-modules/snapcast/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
998 B
Nix

{
lib,
buildPythonPackage,
construct,
packaging,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "snapcast";
version = "2.3.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "happyleavesaoc";
repo = "python-snapcast";
rev = "refs/tags/${version}";
hash = "sha256-gn+X0DZnox4mkJwDVgwNXae63iGbiqPIO15UV5pDwuY=";
};
nativeBuildInputs = [ setuptools ];
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 ];
};
}