summary refs log tree commit diff
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-03-19 23:17:41 -0400
committertechknowlogick <techknowlogick@gitea.io>2023-03-19 23:17:41 -0400
commit76b5525a6d91ef7b4394b78d795ad6dcb1408d88 (patch)
tree30f9b343b607b4df7e3569fcf9d5acce4db41c43
parentb453fb34c23ccf8b8f366990d7357a9ae065988c (diff)
downloadnixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar.gz
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar.bz2
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar.lz
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar.xz
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.tar.zst
nixpkgs-76b5525a6d91ef7b4394b78d795ad6dcb1408d88.zip
shot-scraper: init at 1.1.1
-rw-r--r--pkgs/tools/graphics/shot-scraper/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/shot-scraper/default.nix b/pkgs/tools/graphics/shot-scraper/default.nix
new file mode 100644
index 00000000000..4555f654806
--- /dev/null
+++ b/pkgs/tools/graphics/shot-scraper/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, python3
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "shot-scraper";
+  version = "1.1.1";
+  format = "setuptools";
+
+  disabled = python3.pkgs.pythonOlder "3.6";
+
+  src = python3.pkgs.fetchPypi {
+    inherit pname version;
+    hash = "sha256-YfWiy44rCRXK5xVkmA9X7pAlDhZrk6nS9vbC2eYvjbg=";
+  };
+
+  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";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ techknowlogick ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 4c55163552a..3080352dc0b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -33147,6 +33147,8 @@ with pkgs;
 
   shotgun = callPackage ../tools/graphics/shotgun { };
 
+  shot-scraper = callPackage ../tools/graphics/shot-scraper { };
+
   shutter = callPackage ../applications/graphics/shutter { };
 
   sic-image-cli = callPackage ../tools/graphics/sic-image-cli { };