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

paperwork: use Levenshtein
This commit is contained in:
Robert Schütz 2023-01-21 11:40:52 -08:00 committed by GitHub
commit 84f5f37d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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