nixpkgs/pkgs/development/python-modules/snapcast/default.nix

43 lines
831 B
Nix

{ lib
, buildPythonPackage
, construct
, packaging
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "snapcast";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "happyleavesaoc";
repo = "python-snapcast";
rev = "refs/tags/${version}";
hash = "sha256-H41X5bfRRu+uE7eUsmUkONm6hugNs43+O7MvVPH0e+8=";
};
propagatedBuildInputs = [
construct
packaging
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"snapcast"
];
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 ];
};
}