1 { lib, python3Packages, fetchPypi }:
3 python3Packages.buildPythonApplication rec {
11 hash = "sha256-MTExXpuCwi/IfNDUVLMcxfFRwHHNfGJerHkHnh6/hls=";
14 build-system = with python3Packages; [
18 dependencies = with python3Packages; [
30 pythonImportsCheck = [
34 nativeCheckInputs = with python3Packages; [
38 # The package tries to create a file under the home directory on import
40 export HOME=$(mktemp -d)
44 # pytest exits with a code of 5 if no tests are selected.
45 # handle this specific case as not an error
46 "|| ([ $? = 5 ] || exit $?)"
50 # Loading tests tries to download something from pypi.org
55 description = "CLI for the fichub.net API";
56 changelog = "https://github.com/FicHub/fichub-cli/releases/tag/v${version}";
57 mainProgram = "fichub_cli";
58 homepage = "https://github.com/FicHub/fichub-cli";
59 license = lib.licenses.asl20;
60 maintainers = [ lib.maintainers.samasaur ];