nb-cli: init at 1.4.1

This commit is contained in:
Moraxyc
2024-05-27 01:27:36 +08:00
parent 77fc6692f7
commit b3d6ef71b9

View File

@@ -0,0 +1,60 @@
{
fetchPypi,
lib,
nb-cli,
python3,
testers,
}:
python3.pkgs.buildPythonApplication rec {
pname = "nb-cli";
version = "1.4.1";
pyproject = true;
src = fetchPypi {
pname = "nb_cli";
inherit version;
hash = "sha256-kI3Uy79mv0b+h5wjrRN3My9jOFzryhkStieqaG0YFvM=";
};
build-system = [
python3.pkgs.babel
python3.pkgs.pdm-backend
];
dependencies = with python3.pkgs; [
anyio
cashews
click
cookiecutter
httpx
importlib-metadata
jinja2
noneprompt
pydantic
pyfiglet
tomlkit
typing-extensions
virtualenv
watchfiles
wcwidth
];
# no test
doCheck = false;
pythonImportsCheck = [ "nb_cli" ];
passthru.tests = {
version = testers.testVersion { package = nb-cli; };
};
meta = {
description = "CLI for nonebot2";
homepage = "https://cli.nonebot.dev";
changelog = "https://github.com/nonebot/nb-cli/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "nb";
};
}