depot/third_party/nixpkgs/pkgs/development/python-modules/pyotgw/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
960 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyserial-asyncio,
pyserial-asyncio-fast,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyotgw";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mvn23";
repo = "pyotgw";
rev = "refs/tags/${version}";
hash = "sha256-SowM+glni1PGkM87JT9+QWTD4Tu9XmsfXg99GZzSCJM=";
};
build-system = [ setuptools ];
dependencies = [ pyserial-asyncio-fast ];
nativeCheckInputs = [
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 ];
};
}