python3Packages.stm32loader: 0.5.1 -> 0.7.1

https://github.com/florisla/stm32loader/blob/v0.7.1/CHANGELOG.md
This commit is contained in:
Martin Weinelt
2023-12-20 20:45:29 +01:00
parent d2d8046746
commit 2cc2f7be29
@@ -1,30 +1,53 @@
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
# build-system
, flit-core
# dependenices
, progress
, pyserial
, pytest
, mock
# optional-dependencies
, intelhex
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "stm32loader";
version = "0.5.1";
format = "setuptools";
version = "0.7.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0135qzxlrivvkq6wgkw7shfz94n755qs2c1754p1hc2jk0nqayrg";
hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w=";
};
propagatedBuildInputs = [ progress pyserial ];
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [ pytest ] ++ lib.optional isPy27 mock;
propagatedBuildInputs = [
progress
pyserial
];
checkPhase = ''
pytest --strict tests/unit
'';
passthru.optional-dependencies = {
hex = [
intelhex
];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pytestFlagsArray = [
"tests/unit"
];
meta = with lib; {
description = "Flash firmware to STM32 microcontrollers in Python";