Files
nixpkgs/pkgs/development/python-modules/stm32loader/default.nix
T
Acid Bong 15d4545f1a python3Packages.stm32loader: remove changelog
the new release is neither tagged nor logged (changelog was removed)
2026-05-10 13:15:46 +03:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
# build-system
flit-core,
# dependencies
progress,
pyserial,
# optional-dependencies
intelhex,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "stm32loader";
version = "0.7.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w=";
};
patches = [
# fix build with python 3.12
# https://github.com/florisla/stm32loader/pull/79
(fetchpatch2 {
url = "https://github.com/florisla/stm32loader/commit/96f59b2984b0d0371b2da0360d6e8d94d0b39a68.patch?full_index=1";
hash = "sha256-JUEjQWOnzeMA1OELS214OR7+MYUkCKN5lxwsmRoFbfo=";
})
];
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
progress
pyserial
];
optional-dependencies = {
hex = [ intelhex ];
};
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
enabledTestPaths = [ "tests/unit" ];
meta = {
description = "Flash firmware to STM32 microcontrollers in Python";
mainProgram = "stm32loader";
homepage = "https://github.com/florisla/stm32loader";
license = lib.licenses.gpl3;
maintainers = [ ];
};
}