]> git.scottworley.com Git - paperdoorknob/blame - default.nix
fetch: Honor Cache-Control headers
[paperdoorknob] / default.nix
CommitLineData
92b11a10 1{ pkgs ? import <nixpkgs> { }, lint ? false }:
b34a368f 2pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, autopep8, mypy
ba3b7c52 3 , pylint, requests, requests-cache, types-requests, xdg-base-dirs }:
92b11a10
SW
4 buildPythonPackage rec {
5 pname = "paperdoorknob";
6 version = "0.0.1";
7 src = lib.cleanSource ./.;
ba3b7c52 8 propagatedBuildInputs = [ requests requests-cache xdg-base-dirs ];
b25a2f90
SW
9 nativeCheckInputs = [ mypy types-requests ]
10 ++ lib.optionals lint [ autopep8 pylint ];
92b11a10
SW
11 doCheck = true;
12 checkPhase = "./test.sh";
13 meta = {
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 ];
18 };
19 }) { }