mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
95a3185bf8
There is only one test and this was disabled via some nasty bash eval hacks in pytestFlagsArray. Let's just use... doCheck = false instead?
50 lines
1.0 KiB
Nix
50 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 ];
|
|
};
|
|
}
|