From 83287ca6cb3cc764ce69d5ea80b8768012f090a3 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 16 May 2026 03:59:16 +0200 Subject: [PATCH 1/2] corsair: migrate to pyproject --- pkgs/development/python-modules/corsair-scan/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/corsair-scan/default.nix b/pkgs/development/python-modules/corsair-scan/default.nix index 364ce1081940..a3b9c9676e18 100644 --- a/pkgs/development/python-modules/corsair-scan/default.nix +++ b/pkgs/development/python-modules/corsair-scan/default.nix @@ -6,6 +6,7 @@ mock, pytestCheckHook, requests, + setuptools, tldextract, urllib3, validators, @@ -14,7 +15,7 @@ buildPythonPackage rec { pname = "corsair-scan"; version = "0.2.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "Santandersecurityresearch"; @@ -28,7 +29,9 @@ buildPythonPackage rec { --replace "'pytest-runner'," "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ validators requests urllib3 From 0ab2c18587e315d5758ae06f11203717429f9049 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 16 May 2026 04:00:11 +0200 Subject: [PATCH 2/2] corsair: use finalAttrs --- pkgs/development/python-modules/corsair-scan/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/corsair-scan/default.nix b/pkgs/development/python-modules/corsair-scan/default.nix index a3b9c9676e18..a4dafe2321a0 100644 --- a/pkgs/development/python-modules/corsair-scan/default.nix +++ b/pkgs/development/python-modules/corsair-scan/default.nix @@ -12,7 +12,7 @@ validators, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "corsair-scan"; version = "0.2.0"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Santandersecurityresearch"; repo = "corsair_scan"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-s94ZiTL7tBrhUaeB/O3Eh8o8zqtfdt0z8LKep1bZWiY="; }; @@ -56,8 +56,8 @@ buildPythonPackage rec { description = "Python module to check for Cross-Origin Resource Sharing (CORS) misconfigurations"; mainProgram = "corsair"; homepage = "https://github.com/Santandersecurityresearch/corsair_scan"; - changelog = "https://github.com/Santandersecurityresearch/corsair_scan/releases/tag/v${version}"; + changelog = "https://github.com/Santandersecurityresearch/corsair_scan/releases/tag/v${finalAttrs.version}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})