1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyserial,
6 pyserial-asyncio-fast,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pymonoprice";
13 version = "0.5";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "etsinko";
18 repo = "pymonoprice";
19 tag = version;
20 hash = "sha256-kyFOWG/Jvn+h9ludzd2Zul9/lkwPxReH76nnDIGD+fM=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 pyserial
27 pyserial-asyncio-fast
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "pymonoprice" ];
33
34 meta = {
35 description = "Python 3 interface implementation for Monoprice 6 zone amplifier";
36 homepage = "https://github.com/etsinko/pymonoprice";
37 changelog = "https://github.com/etsinko/pymonoprice/releases/tag/${version}";
38 license = lib.licenses.mit;
39 maintainers = [ lib.maintainers.jamiemagee ];
40 };
41}