2023-03-24 00:07:29 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2023-03-24 00:07:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "shot-scraper";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.4";
|
2023-03-24 00:07:29 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = python3.pkgs.pythonOlder "3.6";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-03-24 00:07:29 +00:00
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-hPzOwvTQAFs9IQRkq/uw+pHv5ZP5XU3Zn605SL8udPA=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
playwright
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
# skip tests due to network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"shot_scraper"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line utility for taking automated screenshots of websites";
|
|
|
|
homepage = "https://github.com/simonw/shot-scraper";
|
|
|
|
changelog = "https://github.com/simonw/shot-scraper/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "shot-scraper";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
}
|