]>
Commit | Line | Data |
---|---|---|
92b11a10 | 1 | { pkgs ? import <nixpkgs> { }, lint ? false }: |
b34a368f | 2 | pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, autopep8, mypy |
136277e3 SW |
3 | , pylint, beautifulsoup4, requests, requests-cache, types-beautifulsoup4 |
4 | , types-requests, xdg-base-dirs }: | |
92b11a10 SW |
5 | buildPythonPackage rec { |
6 | pname = "paperdoorknob"; | |
7 | version = "0.0.1"; | |
8 | src = lib.cleanSource ./.; | |
136277e3 SW |
9 | propagatedBuildInputs = |
10 | [ beautifulsoup4 requests requests-cache xdg-base-dirs ]; | |
11 | nativeCheckInputs = [ mypy types-beautifulsoup4 types-requests ] | |
b25a2f90 | 12 | ++ lib.optionals lint [ autopep8 pylint ]; |
92b11a10 SW |
13 | doCheck = true; |
14 | checkPhase = "./test.sh"; | |
15 | meta = { | |
16 | description = "A polite glowfic → printable book scraper."; | |
17 | homepage = "https://git.scottworley.com/paperdoorknob"; | |
18 | license = pkgs.lib.licenses.gpl3; | |
19 | maintainers = with pkgs.lib.maintainers; [ chkno ]; | |
20 | }; | |
21 | }) { } |