stm32loader: init at 0.5.0

This commit is contained in:
Emily 2019-08-11 18:28:48 -07:00
parent 51bfd931ed
commit 42e55dbe9a
3 changed files with 39 additions and 0 deletions

View 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 ];
};
}

View File

@ -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 { };

View File

@ -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 { };