@@ -559,7 +559,7 @@ buildPythonPackage rec {
559559 sha256 = "cf8436dc59d8695346fcd3ab296de46425ecab00d64096cebe79fb51ecb2eb93";
560560 };
561561
562− preCheck = ''
562+ postPatch = ''
563563 # don't test bash builtins
564564 rm testing/test_argcomplete.py
565565 '';
@@ -655,7 +655,37 @@ the packages with the version of the interpreter. Because this is irrelevant for
655655applications, the prefix is omitted.
656656
657657When packaging a python application with `buildPythonApplication`, it should be
658−invoked with `callPackage` and passed `python` or `pythonPackages`.
658+called with `callPackage` and passed `python` or `pythonPackages` (possibly
659+specifying an interpreter version), like this:
660+
661+```nix
662+{ lib, python3Packages }:
663+
664+python3Packages.buildPythonApplication rec {
665+ pname = "luigi";
666+ version = "2.7.9";
667+
668+ src = python3Packages.fetchPypi {
669+ inherit pname version;
670+ sha256 = "035w8gqql36zlan0xjrzz9j4lh9hs0qrsgnbyw07qs7lnkvbdv9x";
671+ };
672+
673+ propagatedBuildInputs = with python3Packages; [ tornado_4 pythondaemon ];
674+
675+ meta = with lib; {
676+ ...
677+ };
678+}
679+```
680+
681+This is then added to `all-packages.nix` just as any other application would be.
682+
683+```nix
684+luigi = callPackage ../applications/networking/cluster/luigi { };
685+```
686+
687+Since the package is an application, a consumer doesn't need to care about
688+python versions or modules, which is why they don't go in `pythonPackages`.
659689
660690#### `toPythonApplication` function
661691