Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, modbus-connection, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "fronius-modbus"; version = "0.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "farmio"; repo = "fronius-modbus"; tag = finalAttrs.version; hash = "sha256-P7zTFB3xpuJ7oEQqwd/Vbn+Kush5eVjpYPlgZO8O9vE="; };
build-system = [ hatch-vcs hatchling ];
dependencies = [ modbus-connection ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "fronius_modbus" ];
meta = { description = "Library for Fronius inverter Modbus TCP (SunSpec) interfaces, built on modbus-connection"; homepage = "https://github.com/farmio/fronius-modbus"; changelog = "https://github.com/farmio/fronius-modbus/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl3Plus; maintainers = [ lib.maintainers.jamiemagee ]; };})