mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nb-cli: init at 1.4.1
This commit is contained in:
60
pkgs/by-name/nb/nb-cli/package.nix
Normal file
60
pkgs/by-name/nb/nb-cli/package.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user