diff --git a/pkgs/development/python-modules/corsair-scan/default.nix b/pkgs/development/python-modules/corsair-scan/default.nix index 364ce1081940..a4dafe2321a0 100644 --- a/pkgs/development/python-modules/corsair-scan/default.nix +++ b/pkgs/development/python-modules/corsair-scan/default.nix @@ -6,20 +6,21 @@ mock, pytestCheckHook, requests, + setuptools, tldextract, urllib3, validators, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "corsair-scan"; version = "0.2.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "Santandersecurityresearch"; repo = "corsair_scan"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-s94ZiTL7tBrhUaeB/O3Eh8o8zqtfdt0z8LKep1bZWiY="; }; @@ -28,7 +29,9 @@ buildPythonPackage rec { --replace "'pytest-runner'," "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ validators requests urllib3 @@ -53,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 ]; }; -} +})