From 14bc0ffbb96617b9d5de37f5c7d79bb005d6f2d0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 26 Aug 2026 17:08:22 +0200 Subject: [PATCH 1/2] python3Packages.urlscan-python: 0.0.1 -> 2026.08.18 Changelog: https://github.com/urlscan/urlscan-python/releases/tag/v2026.08.18 --- .../python-modules/urlscan-python/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/urlscan-python/default.nix b/pkgs/development/python-modules/urlscan-python/default.nix index 679471a1917c..79d9847aec8d 100644 --- a/pkgs/development/python-modules/urlscan-python/default.nix +++ b/pkgs/development/python-modules/urlscan-python/default.nix @@ -9,19 +9,20 @@ pytest-randomly, pytest-timeout, pytestCheckHook, + python-dotenv, uv-dynamic-versioning, }: buildPythonPackage rec { pname = "urlscan-python"; - version = "0.0.1"; + version = "2026.08.18"; pyproject = true; src = fetchFromGitHub { owner = "urlscan"; repo = "urlscan-python"; tag = "v${version}"; - hash = "sha256-HkovBmmVvUYA5U43w5TUOcwhZAN/0o0BETd1s9R940w="; + hash = "sha256-N7l4+Izn0fhRuoOejtR4/WHTxfoaQVWM6EdSIB0wm+0="; }; build-system = [ @@ -37,10 +38,16 @@ buildPythonPackage rec { pytest-randomly pytest-timeout pytestCheckHook + python-dotenv ]; pythonImportsCheck = [ "urlscan" ]; + disabledTestPaths = [ + # Tests require an API key + "tests/integration" + ]; + meta = { description = "Python API client for urlscan.io"; homepage = "https://github.com/urlscan/urlscan-python/"; From e3e5d0293d7296152fc81c04f7a8c22b739d2d4f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 26 Aug 2026 17:21:15 +0200 Subject: [PATCH 2/2] python3Packages.urlscan-python: migrate to finalAttrs --- .../development/python-modules/urlscan-python/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/urlscan-python/default.nix b/pkgs/development/python-modules/urlscan-python/default.nix index 79d9847aec8d..6923630b2845 100644 --- a/pkgs/development/python-modules/urlscan-python/default.nix +++ b/pkgs/development/python-modules/urlscan-python/default.nix @@ -13,7 +13,7 @@ uv-dynamic-versioning, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "urlscan-python"; version = "2026.08.18"; pyproject = true; @@ -21,7 +21,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "urlscan"; repo = "urlscan-python"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-N7l4+Izn0fhRuoOejtR4/WHTxfoaQVWM6EdSIB0wm+0="; }; @@ -51,8 +51,8 @@ buildPythonPackage rec { meta = { description = "Python API client for urlscan.io"; homepage = "https://github.com/urlscan/urlscan-python/"; - changelog = "https://github.com/urlscan/urlscan-python/releases/tag/${src.tag}"; + changelog = "https://github.com/urlscan/urlscan-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})