X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/1e51262909ed85fcf1016973e6baff2487d889e1..69169c2c71234aa0bc60e15b331369263db0e4b8:/default.nix?ds=sidebyside diff --git a/default.nix b/default.nix index 6bbed22..bb2d87e 100644 --- a/default.nix +++ b/default.nix @@ -1,15 +1,18 @@ { pkgs ? import { }, lint ? false }: pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, makeWrapper , autopep8, mypy, pylint, beautifulsoup4, requests, requests-cache - , types-beautifulsoup4, types-requests, xdg-base-dirs, pandoc-cli }: + , texliveFull, types-beautifulsoup4, types-requests, xdg-base-dirs + , pandoc-cli }: buildPythonPackage rec { pname = "paperdoorknob"; - version = "0.0.1"; + version = lib.removeSuffix "'" (lib.removePrefix "paperdoorknob_version = '" + (lib.fileContents ./version.py)); src = lib.cleanSource ./.; nativeBuildInputs = [ makeWrapper ]; propagatedBuildInputs = [ beautifulsoup4 requests requests-cache xdg-base-dirs ]; - nativeCheckInputs = [ mypy types-beautifulsoup4 types-requests ] + nativeCheckInputs = + [ mypy pandoc-cli texliveFull types-beautifulsoup4 types-requests ] ++ lib.optionals lint [ autopep8 pylint ]; doCheck = true; checkPhase = "./test.sh";