diff --git a/pkgs/by-name/sh/shot-scraper/package.nix b/pkgs/by-name/sh/shot-scraper/package.nix index 4818f015a263..d8be38b4bca6 100644 --- a/pkgs/by-name/sh/shot-scraper/package.nix +++ b/pkgs/by-name/sh/shot-scraper/package.nix @@ -4,19 +4,24 @@ fetchFromGitHub, }: -python3.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "shot-scraper"; - version = "1.8"; + version = "1.9"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "shot-scraper"; - tag = version; - hash = "sha256-CSV9HOqVMHI/L+jyMTdaDyc6ACyGIkG/mmcyRza6EjQ="; + tag = finalAttrs.version; + hash = "sha256-HIiUZZz2/EqTdaCtiaqVaJfbRwkoYL8H6XHaIYP0R6M="; }; - build-system = with python3.pkgs; [ setuptools ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.9.18,<0.10.0" "uv_build" + ''; + + build-system = with python3.pkgs; [ uv-build ]; dependencies = with python3.pkgs; [ click @@ -28,16 +33,14 @@ python3.pkgs.buildPythonApplication rec { # skip tests due to network access doCheck = false; - pythonImportsCheck = [ - "shot_scraper" - ]; + pythonImportsCheck = [ "shot_scraper" ]; meta = { description = "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/${src.tag}"; + changelog = "https://github.com/simonw/shot-scraper/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ techknowlogick ]; mainProgram = "shot-scraper"; }; -} +})