X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/07f9b178a58e87f90aa7ab1e459c17561345154d..19ed28f37b59e480cebe8f122e07ce18ce536db8:/default.nix diff --git a/default.nix b/default.nix index 3e02638..bb2d87e 100644 --- a/default.nix +++ b/default.nix @@ -1,17 +1,18 @@ { pkgs ? import { }, 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"; - 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 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";