b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
43 lines
820 B
Nix
43 lines
820 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyotgw";
|
|
version = "2.0.3";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvn23";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-5iP+EnDrKYQN5N4EvPeWipjkJNweCvi2QBnvwF22gUY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyserial-asyncio
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=legacy"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyotgw" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to interact the OpenTherm Gateway";
|
|
homepage = "https://github.com/mvn23/pyotgw";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|