Files
nixpkgs/pkgs/development/python-modules/stm32loader/default.nix
Emily 4b1d39d935 treewide: remove myself from packages I don’t use
I’ve had an extended absence from Nix work and no longer actively
use a bunch of packages I used to maintain, so remove myself as a
maintainer from things I can’t usefully review/test changes for
as I ease back into things. This does unfortunately leave a few
packages orphaned (`stm32loader`, `tinyprog`, `python3Packages.fx2`,
and `python3Packages.jsonmerge`).
2024-06-15 16:53:23 +01:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
flit-core,
# dependenices
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=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
progress
pyserial
];
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";
mainProgram = "stm32loader";
homepage = "https://github.com/florisla/stm32loader";
changelog = "https://github.com/florisla/stm32loader/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
};
}