]> git.scottworley.com Git - paperdoorknob/blame - default.nix
fetch: Verify error handling
[paperdoorknob] / default.nix
CommitLineData
92b11a10
SW
1{ pkgs ? import <nixpkgs> { }, lint ? false }:
2pkgs.python3Packages.callPackage
b25a2f90 3({ lib, buildPythonPackage, autopep8, mypy, pylint, requests, types-requests }:
92b11a10
SW
4 buildPythonPackage rec {
5 pname = "paperdoorknob";
6 version = "0.0.1";
7 src = lib.cleanSource ./.;
b25a2f90
SW
8 propagatedBuildInputs = [ requests ];
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 }) { }