2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrfxtrx";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "0.28.0";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Danielhiversen";
|
|
|
|
repo = "pyRFXtrx";
|
|
|
|
rev = version;
|
2022-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-Ty+yIA8amKyV3z++7n1m/YRH0gEoVIVTdX8xiZYp/eM=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# https://github.com/Danielhiversen/pyRFXtrx/issues/130
|
|
|
|
"tests/test_rollertrol.py"
|
|
|
|
];
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to communicate with the RFXtrx family of devices";
|
|
|
|
homepage = "https://github.com/Danielhiversen/pyRFXtrx";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|