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

38 lines
746 B
Nix
Raw Normal View History

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