Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "fichub-cli";
|
|
version = "0.10.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "fichub_cli";
|
|
inherit version;
|
|
hash = "sha256-MTExXpuCwi/IfNDUVLMcxfFRwHHNfGJerHkHnh6/hls=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
platformdirs
|
|
beautifulsoup4
|
|
click
|
|
click-plugins
|
|
colorama
|
|
loguru
|
|
requests
|
|
tqdm
|
|
typer
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"fichub_cli"
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Loading tests tries to download something from pypi.org
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "CLI for the fichub.net API";
|
|
changelog = "https://github.com/FicHub/fichub-cli/releases/tag/v${version}";
|
|
mainProgram = "fichub_cli";
|
|
homepage = "https://github.com/FicHub/fichub-cli";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.samasaur ];
|
|
};
|
|
}
|