]> git.scottworley.com Git - paperdoorknob/blobdiff - default.nix
Always have Thread.__init__ fetch the HTML
[paperdoorknob] / default.nix
index 3e02638098eb34a7f513f1a3701a4c8a3cde5828..bb2d87e986b98702f61a0cd609030d26f81cb0ed 100644 (file)
@@ -1,17 +1,18 @@
 { 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";
-    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";