2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
six,
|
2024-07-31 10:19:44 +00:00
|
|
|
lxml,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
buildPythonPackage {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "cmsis-svd";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "0.4-unstable-2024-01-25";
|
|
|
|
pyproject = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-07-31 10:19:44 +00:00
|
|
|
owner = "cmsis-svd";
|
|
|
|
repo = "cmsis-svd";
|
|
|
|
rev = "38d21d30abd0d4c2f34fd79d83b34392ed4bb7a3";
|
|
|
|
hash = "sha256-lFA0sNHVj4a4+EwOTmFUbM/nhmzJ4mx4GvT6Ykutakk=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
preBuild = ''
|
2021-02-05 17:12:51 +00:00
|
|
|
cd python
|
|
|
|
'';
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dependencies = [
|
|
|
|
six
|
|
|
|
lxml
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cmsis_svd"
|
|
|
|
"cmsis_svd.parser"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "CMSIS SVD parser";
|
2024-07-31 10:19:44 +00:00
|
|
|
homepage = "https://github.com/cmsis-svd/cmsis-svd";
|
|
|
|
maintainers = [ lib.maintainers.dump_stack ];
|
|
|
|
license = lib.licenses.asl20;
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|