1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, autopep8, mypy
3 , pylint, requests, requests-cache, types-requests, xdg-base-dirs }:
4 buildPythonPackage rec {
5 pname = "paperdoorknob";
7 src = lib.cleanSource ./.;
8 propagatedBuildInputs = [ requests requests-cache xdg-base-dirs ];
9 nativeCheckInputs = [ mypy types-requests ]
10 ++ lib.optionals lint [ autopep8 pylint ];
12 checkPhase = "./test.sh";
14 description = "A polite glowfic → printable book scraper.";
15 homepage = "https://git.scottworley.com/paperdoorknob";
16 license = pkgs.lib.licenses.gpl3;
17 maintainers = with pkgs.lib.maintainers; [ chkno ];