Merge pull request #66497 from emilazy/add-stm32loader

stm32loader: init at 0.5.0
This commit is contained in:
worldofpeace 2019-08-11 22:31:07 -04:00 committed by GitHub
commit ee877d7b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 0 deletions

View file

@ -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";

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