mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
python3Packages.sofar-modbus: init at 0.5.0 (#560118)
This commit is contained in:
53
pkgs/development/python-modules/sofar-modbus/default.nix
Normal file
53
pkgs/development/python-modules/sofar-modbus/default.nix
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
modbus-connection,
|
||||
pyprojectVersionPatchHook,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "sofar-modbus";
|
||||
version = "0.5.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darkrain-nl";
|
||||
repo = "sofar-modbus";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-rigrnxn/eHu98S0RHDdJXs7zx5RovCpQnsvqUCkY0yo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
modbus-connection
|
||||
]
|
||||
++ modbus-connection.optional-dependencies.tmodbus;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sofar_modbus"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Read Sofar Solar inverters over Modbus";
|
||||
homepage = "https://github.com/darkrain-nl/sofar-modbus";
|
||||
changelog = "https://github.com/darkrain-nl/sofar-modbus/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
};
|
||||
})
|
||||
@@ -6686,9 +6686,10 @@
|
||||
[
|
||||
modbus-connection
|
||||
pymodbus
|
||||
sofar-modbus
|
||||
tmodbus
|
||||
]
|
||||
++ modbus-connection.optional-dependencies.tmodbus; # missing inputs: sofar-modbus
|
||||
++ modbus-connection.optional-dependencies.tmodbus;
|
||||
"solaredge" =
|
||||
ps: with ps; [
|
||||
aiosolaredge
|
||||
@@ -9241,6 +9242,7 @@
|
||||
"snmp"
|
||||
"snoo"
|
||||
"snooz"
|
||||
"sofar"
|
||||
"solaredge"
|
||||
"solarlog"
|
||||
"solarman"
|
||||
|
||||
@@ -19296,6 +19296,8 @@ self: super: with self; {
|
||||
|
||||
soco = callPackage ../development/python-modules/soco { };
|
||||
|
||||
sofar-modbus = callPackage ../development/python-modules/sofar-modbus { };
|
||||
|
||||
softlayer = callPackage ../development/python-modules/softlayer { };
|
||||
|
||||
solaredge-local = callPackage ../development/python-modules/solaredge-local { };
|
||||
|
||||
Reference in New Issue
Block a user