1{ lib
2, python3
3, fetchPypi
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "shot-scraper";
8 version = "1.1.1";
9 format = "setuptools";
10
11 disabled = python3.pkgs.pythonOlder "3.6";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-YfWiy44rCRXK5xVkmA9X7pAlDhZrk6nS9vbC2eYvjbg=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 click
20 click-default-group
21 playwright
22 pyyaml
23 ];
24
25 # skip tests due to network access
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "shot_scraper"
30 ];
31
32 meta = with lib; {
33 description = "A command-line utility for taking automated screenshots of websites";
34 homepage = "https://github.com/simonw/shot-scraper";
35 changelog = "https://github.com/simonw/shot-scraper/releases/tag/${version}";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ techknowlogick ];
38 };
39}