Commit ffdcfb6c authored by Anders Kaseorg's avatar Anders Kaseorg
Browse files

dput-ng: Install required configuration files



Signed-off-by: default avatarAnders Kaseorg <andersk@mit.edu>
parent a47c384c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,10 @@ python3.pkgs.buildPythonApplication {
    hash = "sha256-zrH4h4C4y3oTiOXsidFv/rIJNzCdV2lqzNEg0SOkX4w=";
  };

  postPatch = ''
    substituteInPlace dput/core.py --replace-fail /usr/share/dput-ng "$out/share/dput-ng"
  '';

  build-system = with python3.pkgs; [
    setuptools
  ];
@@ -36,6 +40,8 @@ python3.pkgs.buildPythonApplication {

  postInstall = ''
    cp -r bin $out/
    mkdir -p "$out/share/dput-ng"
    cp -r skel/* "$out/share/dput-ng/"
  '';

  pythonImportsCheck = [ "dput" ];