python3Packages.stm32loader: 0.5.1 -> 0.7.1
https://github.com/florisla/stm32loader/blob/v0.7.1/CHANGELOG.md
This commit is contained in:
@@ -1,30 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchPypi
|
||||
|
||||
# build-system
|
||||
, flit-core
|
||||
|
||||
# dependenices
|
||||
, progress
|
||||
, pyserial
|
||||
, pytest
|
||||
, mock
|
||||
|
||||
# optional-dependencies
|
||||
, intelhex
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stm32loader";
|
||||
version = "0.5.1";
|
||||
format = "setuptools";
|
||||
version = "0.7.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0135qzxlrivvkq6wgkw7shfz94n755qs2c1754p1hc2jk0nqayrg";
|
||||
hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ progress pyserial ];
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytest ] ++ lib.optional isPy27 mock;
|
||||
propagatedBuildInputs = [
|
||||
progress
|
||||
pyserial
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --strict tests/unit
|
||||
'';
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user