nixpkgs/pkgs/tools/graphics/shot-scraper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
906 B
Nix
Raw Normal View History

2023-03-20 03:17:41 +00:00
{ lib
, python3
, fetchPypi
2023-03-20 03:17:41 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "shot-scraper";
2024-02-06 01:18:30 +00:00
version = "1.4";
2023-03-20 03:17:41 +00:00
format = "setuptools";
disabled = python3.pkgs.pythonOlder "3.6";
src = fetchPypi {
2023-03-20 03:17:41 +00:00
inherit pname version;
2024-02-06 01:18:30 +00:00
hash = "sha256-hPzOwvTQAFs9IQRkq/uw+pHv5ZP5XU3Zn605SL8udPA=";
2023-03-20 03:17:41 +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";
2023-03-20 08:17:15 +00:00
changelog = "https://github.com/simonw/shot-scraper/releases/tag/${version}";
2023-03-20 03:17:41 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ techknowlogick ];
2023-11-23 02:51:17 +00:00
mainProgram = "shot-scraper";
2023-03-20 03:17:41 +00:00
};
}