nixpkgs/pkgs/development/python-modules/west/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

64 lines
1.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, buildPythonPackage
, colorama
, configobj
, fetchPypi
, packaging
, pykwalify
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "west";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-tB5RrJA5OUT5wB974nAA1LMpYVt+0HT7DvaTtGRoEpc=";
};
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;
pythonImportsCheck = [
"west"
];
meta = with lib; {
description = "Zephyr RTOS meta tool";
mainProgram = "west";
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 Zephyrs manifest file
(https://github.com/zephyrproject-rtos/zephyr/blob/master/west.yml),
but west doesnt 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).
'';
homepage = "https://github.com/zephyrproject-rtos/west";
changelog = "https://github.com/zephyrproject-rtos/west/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ siriobalmelli ];
};
}