corsair: migrate to pyproject (#520690)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user