How to use buildPythonApplication correctly? No binaries in result folder

Hello, I am trying to package a python application using buildPythonApplication and I seem to have missed something as the result of nix-build doesn’t contain binaries. Also, any suggestions are welcome as this is the first time I am packaging an application.

My default.nix looks like that:

{ lib, python3, fetchPypi, pkg-config, gcc, SDL2, SDL2_mixer, ffmpeg }:

with python3.pkgs;

let
  ffpyplayer = buildPythonPackage rec {
    pname = "ffpyplayer";
    version = "4.3.5";

    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-vmsJLjFEaDD7EHOVXQQgplEJUtBo2nDmFjrXRCDw5DQ=";
    };

    nativeBuildInputs = [ pkg-config cython ];
    buildInputs = [ ffmpeg SDL2 SDL2_mixer ];

    doCheck = false;
  };

  kivymd = buildPythonPackage rec {
    pname = "kivymd";
    version = "1.1.1";

    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-kxoENcKgecbcp1XFDQAjteHJB/e0rIu54oNNqjzv6QY=";
    };

    propagatedBuildInputs = [ kivy pillow ];

    doCheck = false;
  };

in buildPythonApplication rec {
  pname = "katrain";
  version = "1.13.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560";
  };

  BuildInputs = [
    certifi
    chardet
    docutils
    ffpyplayer
    idna
    kivy
    kivy-garden
    kivymd
    pillow
    pygments
    requests
    urllib3
  ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/sanderland/katrain";
    description = "Go/Baduk/Weiqi playing and teaching app with a variety of AIs";
    license = licenses.mit;
  };
}