]> git.scottworley.com Git - paperdoorknob/commitdiff
New dependency: wrapfig TeX package
authorScott Worley <scottworley@scottworley.com>
Wed, 20 Dec 2023 23:25:53 +0000 (15:25 -0800)
committerScott Worley <scottworley@scottworley.com>
Wed, 20 Dec 2023 23:25:53 +0000 (15:25 -0800)
default.nix
paperdoorknob.py
paperdoorknob_test.py

index 3e02638098eb34a7f513f1a3701a4c8a3cde5828..c27c9e63ad0e21154daadcc17997e2a6a428d93e 100644 (file)
@@ -1,7 +1,7 @@
 { pkgs ? import <nixpkgs> { }, lint ? false }:
 pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, makeWrapper
   , autopep8, mypy, pylint, beautifulsoup4, requests, requests-cache
-  , texliveBasic, types-beautifulsoup4, types-requests, xdg-base-dirs
+  , texliveFull, types-beautifulsoup4, types-requests, xdg-base-dirs
   , pandoc-cli }:
   buildPythonPackage rec {
     pname = "paperdoorknob";
@@ -11,7 +11,7 @@ pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, makeWrapper
     propagatedBuildInputs =
       [ beautifulsoup4 requests requests-cache xdg-base-dirs ];
     nativeCheckInputs =
-      [ mypy pandoc-cli texliveBasic types-beautifulsoup4 types-requests ]
+      [ mypy pandoc-cli texliveFull types-beautifulsoup4 types-requests ]
       ++ lib.optionals lint [ autopep8 pylint ];
     doCheck = true;
     checkPhase = "./test.sh";
index 84ed70228d3d9b4040fc765c3ced2be68d1d58ea..160f0db769416c6cd034486d8dcb513b756e8cdd 100644 (file)
@@ -17,7 +17,7 @@ def parse(content: bytes) -> BeautifulSoup:
 
 
 def process(spec: Spec) -> None:
-    spec.texout.write(b'\\documentclass{article}\n')
+    spec.texout.write(b'\\documentclass{article}\n\\usepackage{wrapfig}\n')
     if spec.geometry is not None:
         spec.texout.write(b'\\usepackage[' +
                           spec.geometry.encode('UTF-8') +
index 7ceb3eaf2cd77f7f98f0a28b6e1886baa1d801b1..4291bb4e613659b29ec21eecd77c60777f6e97a6 100644 (file)
@@ -45,6 +45,7 @@ class BaseTestProcess(ABC):
             buf)
         paperdoorknob.process(spec)
         assert buf.getvalue() == b'''\\documentclass{article}
+\\usepackage{wrapfig}
 \\usepackage[margin=20mm]{geometry}
 \\begin{document}
 This is glowfic