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