14 buildPythonPackage rec {
15 pname = "corsair-scan";
17 format = "setuptools";
19 disabled = pythonOlder "3.8";
21 src = fetchFromGitHub {
22 owner = "Santandersecurityresearch";
23 repo = "corsair_scan";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-s94ZiTL7tBrhUaeB/O3Eh8o8zqtfdt0z8LKep1bZWiY=";
29 substituteInPlace setup.py \
30 --replace "'pytest-runner'," ""
33 propagatedBuildInputs = [
46 pythonImportsCheck = [
51 # Tests want to download Public Suffix List
52 "test_corsair_scan_401"
53 "test_corsair_scan_origin"
57 description = "Python module to check for Cross-Origin Resource Sharing (CORS) misconfigurations";
58 mainProgram = "corsair";
59 homepage = "https://github.com/Santandersecurityresearch/corsair_scan";
60 changelog = "https://github.com/Santandersecurityresearch/corsair_scan/releases/tag/v${version}";
61 license = with licenses; [ mit ];
62 maintainers = with maintainers; [ fab ];