You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{lib,stdenv,fetchFromGitHub,buildPythonApplication,docopt,anytree, ...
}:
buildPythonApplicationrec{pname="catcli";version="v0.5.13";src=fetchFromGitHub{owner="deadc0de6";repo=pname;rev=version;sha256="04mrkqmm2c8fhi1h1hddc4yh3dqhcvkmcwzhj0ggn34v7wavgb5i";};propagatedBuildInputs=[docoptanytree];buildInputs=[docoptanytree];postPatch='' patchShebangs . '';meta=withstdenv.lib;{homepage=https://github.com/deadc0de6/catcli;description="The command line catalog tool for your offline data";license=licenses.gpl3;maintainers=withmaintainers;[petersjt014];};}
This builds with the relevant callPackage line in top-level.nix (I think that's where it must go), but attempting to invoke it with ./result/bin/catcli yields:
Traceback (most recent call last):
File "/nix/store/vs6ay1fks6gnyq2vbc8bmvy5ydfida56-catcli-v0.5.13/bin/.catcli-wrapped", line 9, in <module>
sys.exit(main())
File "/nix/store/vs6ay1fks6gnyq2vbc8bmvy5ydfida56-catcli-v0.5.13/lib/python3.7/site-packages/catcli/__init__.py", line 12, in main
import catcli.catcli
File "/nix/store/vs6ay1fks6gnyq2vbc8bmvy5ydfida56-catcli-v0.5.13/lib/python3.7/site-packages/catcli/catcli.py", line 14, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
This is weird, as I have docopt in the build inputs. edit: typo. ./result/bin/catcli --help now shows the expected help text.
Apparently buildPythonApplication takes care of the tests too, so there's nothing more to add that I can think of for now.
The text was updated successfully, but these errors were encountered:
Catcli
"The command line catalog tool for your offline data."
Because git-annex is hard.
Metadata
WIP definition
This builds with the relevant callPackage line in top-level.nix (I think that's where it must go), but attempting to invoke it with
./result/bin/catcli
yields:This is weird, as I have docopt in the build inputs.
edit: typo.
./result/bin/catcli --help
now shows the expected help text.Apparently
buildPythonApplication
takes care of the tests too, so there's nothing more to add that I can think of for now.The text was updated successfully, but these errors were encountered: