1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyserial
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pyrfxtrx";
10 version = "0.30.1";
11
12 src = fetchFromGitHub {
13 owner = "Danielhiversen";
14 repo = "pyRFXtrx";
15 rev = "refs/tags/${version}";
16 hash = "sha256-sxxGu1ON5fhUCaONYJdsUFHraTh5NAdXzj7Cai9k5yc=";
17 };
18
19 propagatedBuildInputs = [
20 pyserial
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 disabledTestPaths = [
28 # https://github.com/Danielhiversen/pyRFXtrx/issues/130
29 "tests/test_rollertrol.py"
30 ];
31
32 meta = with lib; {
33 description = "Library to communicate with the RFXtrx family of devices";
34 homepage = "https://github.com/Danielhiversen/pyRFXtrx";
35 license = licenses.lgpl3Plus;
36 maintainers = with maintainers; [ dotlambda ];
37 };
38}