diff --git a/pkgs/development/python-modules/ezdxf/default.nix b/pkgs/development/python-modules/ezdxf/default.nix index 91a1d77caa89..80c9c467927c 100644 --- a/pkgs/development/python-modules/ezdxf/default.nix +++ b/pkgs/development/python-modules/ezdxf/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, pyparsing, @@ -14,6 +15,7 @@ matplotlib, pymupdf, pyqt5, + librecad, }: buildPythonPackage rec { @@ -65,6 +67,15 @@ buildPythonPackage rec { "ezdxf.addons" ]; + preCheck = '' + ln -s "${librecad}/${ + if stdenv.hostPlatform.isDarwin then + "Applications/LibreCAD.app/Contents/Resources" + else + "share/librecad" + }/fonts" fonts/librecad + ''; + meta = { description = "Python package to read and write DXF drawings (interface to the DXF file format)"; mainProgram = "ezdxf";