Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455# Start this shell with:# nix-shell path/to/root/of/nixpkgs -A flattenReferencesGraph.dev-shell{ mkShell, callPackage, python3Packages,}:let helpers = callPackage (import ./helpers.nix) { };inmkShell { inputsFrom = [ (callPackage (import ./package.nix) { }) ]; buildInputs = [ helpers.format helpers.lint helpers.unittest # This is needed to plot graphs when DEBUG_PLOT is set to True. python3Packages.pycairo # This can be used on linux to display the graphs. # On other platforms the image viewer needs to be set with # DEBUG_PLOT_IMAGE_VIEWER env var. # pkgs.gwenview ]; shellHook = '' echo ' ********************************************************************** **********************************************************************
Commands useful for development (should be executed from scr dir):
format * formats all files in place using autopep8
lint * lints all files using flake8
unittest * runs all unit tests
following env vars can be set to enable extra output in tests: - DEBUG=True - enable debug logging - DEBUG_PLOT=True - plot graphs processed by split_paths.py and subcomponent.py - DEBUG_PLOT_IMAGE_VIEWER=$PATH_OF_IMAGE_VIEWER_APP - app used to display plots (default: gwenview) - DEBUG_PLOT_SAVE_BASE_NAME=$SOME_NAME - if set, plots will be saved to files instead of displayed with image viewer
********************************************************************** ********************************************************************** ' '';}