2022-04-15 01:41:22 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, colorama
|
|
|
|
|
, configobj
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, packaging
|
|
|
|
|
, pykwalify
|
|
|
|
|
, pythonOlder
|
|
|
|
|
, pyyaml
|
2020-08-20 17:08:02 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "west";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
version = "1.2.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
hash = "sha256-tB5RrJA5OUT5wB974nAA1LMpYVt+0HT7DvaTtGRoEpc=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
colorama
|
|
|
|
|
configobj
|
|
|
|
|
packaging
|
|
|
|
|
pyyaml
|
|
|
|
|
pykwalify
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# pypi package does not include tests (and for good reason):
|
|
|
|
|
# tests run under 'tox' and have west try to git clone repos (not sandboxable)
|
|
|
|
|
doCheck = false;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
|
pythonImportsCheck = [
|
|
|
|
|
"west"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Zephyr RTOS meta tool";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
West lets you manage multiple Git repositories under a single directory using a single file,
|
|
|
|
|
called the west manifest file, or manifest for short.
|
|
|
|
|
|
|
|
|
|
The manifest file is named west.yml.
|
|
|
|
|
You use west init to set up this directory,
|
|
|
|
|
then west update to fetch and/or update the repositories
|
|
|
|
|
named in the manifest.
|
|
|
|
|
|
|
|
|
|
By default, west uses upstream Zephyr’s manifest file
|
|
|
|
|
(https://github.com/zephyrproject-rtos/zephyr/blob/master/west.yml),
|
|
|
|
|
but west doesn’t care if the manifest repository is a Zephyr tree or not.
|
|
|
|
|
|
|
|
|
|
For more details, see Multiple Repository Management in the west documentation
|
|
|
|
|
(https://docs.zephyrproject.org/latest/guides/west/repo-tool.html).
|
|
|
|
|
'';
|
2022-04-15 01:41:22 +00:00
|
|
|
|
homepage = "https://github.com/zephyrproject-rtos/west";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
changelog = "https://github.com/zephyrproject-rtos/west/releases/tag/v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
|
|
|
};
|
|
|
|
|
}
|