{ 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";
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";
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') +