Merge pull request #66497 from emilazy/add-stm32loader
stm32loader: init at 0.5.0
This commit is contained in:
commit
ee877d7b19
@ -1518,6 +1518,11 @@
|
||||
github = "liclac";
|
||||
name = "embr";
|
||||
};
|
||||
emily = {
|
||||
email = "nixpkgs@emily.moe";
|
||||
github = "emilazy";
|
||||
name = "Emily";
|
||||
};
|
||||
ederoyd46 = {
|
||||
email = "matt@ederoyd.co.uk";
|
||||
github = "ederoyd46";
|
||||
|
35
pkgs/development/python-modules/stm32loader/default.nix
Normal file
35
pkgs/development/python-modules/stm32loader/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
, progress
|
||||
, pyserial
|
||||
, pytest
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stm32loader";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1w6jg4dcyz6si6dcyx727sxi75wnl0j89xkiwqmsw286s1y8ijjw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ progress pyserial ];
|
||||
|
||||
checkInputs = [ pytest ] ++ lib.optional isPy27 mock;
|
||||
|
||||
checkPhase = ''
|
||||
pytest --strict tests/unit
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flash firmware to STM32 microcontrollers in Python";
|
||||
homepage = https://github.com/florisla/stm32loader;
|
||||
changelog = "https://github.com/florisla/stm32loader/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ emily ];
|
||||
};
|
||||
}
|
@ -6104,6 +6104,8 @@ in
|
||||
|
||||
stdman = callPackage ../data/documentation/stdman { };
|
||||
|
||||
stm32loader = with python3Packages; toPythonApplication stm32loader;
|
||||
|
||||
storebrowse = callPackage ../tools/system/storebrowse { };
|
||||
|
||||
stubby = callPackage ../tools/networking/stubby { };
|
||||
|
@ -1160,6 +1160,8 @@ in {
|
||||
|
||||
statistics = callPackage ../development/python-modules/statistics { };
|
||||
|
||||
stm32loader = callPackage ../development/python-modules/stm32loader { };
|
||||
|
||||
stumpy = callPackage ../development/python-modules/stumpy { };
|
||||
|
||||
sumo = callPackage ../development/python-modules/sumo { };
|
||||
|
Loading…
Reference in New Issue
Block a user