Unverified Commit 84f5f37d authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #211641 from dotlambda/paperwork-backend-fix

paperwork: use Levenshtein
parents f6d34236 0557ba0f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@ buildPythonPackage rec {
  patchFlags = [ "-p2" ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace python-Levenshtein Levenshtein

    echo 'version = "${version}"' > src/paperwork_backend/_version.py
    chmod a+w -R ..
    patchShebangs ../tools
+4 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
let
  documentation_deps = [
    (texlive.combine {
      inherit (texlive) scheme-small wrapfig was;
      inherit (texlive) scheme-small wrapfig gensymb;
    })
    xvfb-run
    imagemagick
@@ -45,6 +45,9 @@ python3Packages.buildPythonApplication rec {

  # Patch out a few paths that assume that we're using the FHS:
  postPatch = ''
    substituteInPlace setup.py \
      --replace python-Levenshtein Levenshtein

    chmod a+w -R ..
    patchShebangs ../tools