nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, construct
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "snapcast";
11 version = "2.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "happyleavesaoc";
18 repo = "python-snapcast";
19 rev = "refs/tags/${version}";
20 hash = "sha256-H41X5bfRRu+uE7eUsmUkONm6hugNs43+O7MvVPH0e+8=";
21 };
22
23 propagatedBuildInputs = [
24 construct
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "snapcast"
33 ];
34
35 meta = with lib; {
36 description = "Control Snapcast, a multi-room synchronous audio solution";
37 homepage = "https://github.com/happyleavesaoc/python-snapcast/";
38 license = licenses.mit;
39 maintainers = with maintainers; [ peterhoeg ];
40 };
41}