at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 colorama, 5 django, 6 fetchFromGitHub, 7 flask-unsign, 8 poetry-core, 9 poetry-dynamic-versioning, 10 pycryptodome, 11 pyjwt, 12 requests, 13 viewstate, 14}: 15 16buildPythonPackage rec { 17 pname = "badsecrets"; 18 version = "0.13.47"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "blacklanternsecurity"; 23 repo = "badsecrets"; 24 tag = "v${version}"; 25 hash = "sha256-Yvd9AGbVDOfXep8y+XzwYP2EpTvy+rwyz5hRIe7v4oc="; 26 }; 27 28 build-system = [ 29 poetry-core 30 poetry-dynamic-versioning 31 ]; 32 33 dependencies = [ 34 colorama 35 django 36 flask-unsign 37 pycryptodome 38 pyjwt 39 requests 40 viewstate 41 ]; 42 43 pythonRelaxDeps = [ "viewstate" ]; 44 45 pythonImportsCheck = [ "badsecrets" ]; 46 47 meta = { 48 description = "Module for detecting known secrets across many web frameworks"; 49 homepage = "https://github.com/blacklanternsecurity/badsecrets"; 50 changelog = "https://github.com/blacklanternsecurity/badsecrets/releases/tag/${src.tag}"; 51 license = with lib.licenses; [ 52 agpl3Only 53 gpl3Only 54 ]; 55 maintainers = with lib.maintainers; [ fab ]; 56 }; 57}