depot/third_party/nixpkgs/pkgs/development/python-modules/pyotgw/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

44 lines
890 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial-asyncio
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyotgw";
version = "2.1.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mvn23";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-qUwpW9C9VqsbDNa9zqa/BZtMuzmPU21Au/q0iGRkBNY=";
};
propagatedBuildInputs = [
pyserial-asyncio
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"pyotgw"
];
meta = with lib; {
description = "Python module to interact the OpenTherm Gateway";
homepage = "https://github.com/mvn23/pyotgw";
changelog = "https://github.com/mvn23/pyotgw/blob/${version}/CHANGELOG.md";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}