14 # optional-dependencies
21 buildPythonPackage rec {
22 pname = "stm32loader";
27 inherit pname version;
28 hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w=";
32 # fix build with python 3.12
33 # https://github.com/florisla/stm32loader/pull/79
35 url = "https://github.com/florisla/stm32loader/commit/96f59b2984b0d0371b2da0360d6e8d94d0b39a68.patch?full_index=1";
36 hash = "sha256-JUEjQWOnzeMA1OELS214OR7+MYUkCKN5lxwsmRoFbfo=";
40 nativeBuildInputs = [ flit-core ];
42 propagatedBuildInputs = [
47 optional-dependencies = {
53 ] ++ lib.flatten (lib.attrValues optional-dependencies);
55 pytestFlagsArray = [ "tests/unit" ];
58 description = "Flash firmware to STM32 microcontrollers in Python";
59 mainProgram = "stm32loader";
60 homepage = "https://github.com/florisla/stm32loader";
61 changelog = "https://github.com/florisla/stm32loader/blob/v${version}/CHANGELOG.md";
62 license = licenses.gpl3;