nixpkgs/pkgs/development/python-modules/snapcast/default.nix
2023-03-07 13:09:03 +01:00

50 lines
953 B
Nix

{ lib
, buildPythonPackage
, construct
, packaging
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "snapcast";
version = "2.3.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "happyleavesaoc";
repo = "python-snapcast";
rev = "refs/tags/${version}";
hash = "sha256-kUUKDcHnWA+saqQM7aCfW9NmhG6DYsB21tlEQ3cYNs4=";
};
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 ];
};
}