2021-10-17 02:12:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, braceexpand
|
|
|
|
, click
|
|
|
|
, pyyaml
|
|
|
|
, lxml
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "svdtools";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.1.23";
|
|
|
|
format = "setuptools";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-LuursRuUZEDLbk9Wbnq/S0dsZHbzIJo1YCSVFMUoiog=";
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
braceexpand
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"svdtools"
|
|
|
|
];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to handle vendor-supplied, often buggy SVD files";
|
|
|
|
homepage = "https://github.com/stm32-rs/svdtools";
|
2022-01-25 03:21:06 +00:00
|
|
|
changelog = "https://github.com/stm32-rs/svdtools/blob/v${version}/CHANGELOG-python.md";
|
2021-10-17 02:12:59 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ newam ];
|
|
|
|
};
|
|
|
|
}
|