python3Packages.smpclient: 6.0.0 -> 7.0.1 (#520696)

This commit is contained in:
dotlambda
2026-05-22 22:27:22 +00:00
committed by GitHub
3 changed files with 29 additions and 18 deletions
+8 -5
View File
@@ -27,11 +27,14 @@ python3Packages.buildPythonApplication (finalAttrs: {
"smpclient"
];
dependencies = with python3Packages; [
readchar
smpclient
typer
];
dependencies =
with python3Packages;
[
readchar
smpclient
typer
]
++ smpclient.optional-dependencies.all;
nativeCheckInputs = with python3Packages; [
pytestCheckHook
@@ -22,6 +22,11 @@ buildPythonPackage rec {
hash = "sha256-dATsVGG0b5SBZh7R7NT1deJFDRYi7BwtWzT7/QPjkJw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0"' 'version = "${version}"'
'';
build-system = [
poetry-core
];
@@ -4,9 +4,9 @@
bleak,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
intelhex,
poetry-core,
poetry-dynamic-versioning,
pyserial,
pytest-asyncio,
pytestCheckHook,
@@ -15,38 +15,41 @@
buildPythonPackage rec {
pname = "smpclient";
version = "6.0.0";
version = "7.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "intercreate";
repo = "smpclient";
tag = version;
hash = "sha256-1FyrJivP+sOKXVFuH5NbvIlOTOkuiUO3uIRasH8D+d8=";
hash = "sha256-5o2z+cyOVpTNpOdc9GfFNmqcOhbGgbFM0qGng44E1xE=";
};
pythonRelaxDeps = [
"bleak"
"smp"
];
env.HATCH_BUILD_HOOK_VCS_VERSION = version;
build-system = [
poetry-core
poetry-dynamic-versioning
hatchling
hatch-vcs
];
dependencies = [
async-timeout
bleak
intelhex
pyserial
smp
];
optional-dependencies = {
serial = [ pyserial ];
ble = [ bleak ];
udp = [ ];
all = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "all" ]);
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
]
++ optional-dependencies.all;
pythonImportsCheck = [ "smpclient" ];