Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 (finalAttrs: {
17 pname = "badsecrets";
18 version = "0.13.47";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "blacklanternsecurity";
23 repo = "badsecrets";
24 tag = "v${finalAttrs.version}";
25 hash = "sha256-Yvd9AGbVDOfXep8y+XzwYP2EpTvy+rwyz5hRIe7v4oc=";
26 };
27
28 pythonRelaxDeps = [
29 "django"
30 "viewstate"
31 ];
32
33 build-system = [
34 poetry-core
35 poetry-dynamic-versioning
36 ];
37
38 dependencies = [
39 colorama
40 django
41 flask-unsign
42 pycryptodome
43 pyjwt
44 requests
45 viewstate
46 ];
47
48 pythonImportsCheck = [ "badsecrets" ];
49
50 meta = {
51 description = "Module for detecting known secrets across many web frameworks";
52 homepage = "https://github.com/blacklanternsecurity/badsecrets";
53 changelog = "https://github.com/blacklanternsecurity/badsecrets/releases/tag/${finalAttrs.src.tag}";
54 license = with lib.licenses; [
55 agpl3Only
56 gpl3Only
57 ];
58 maintainers = with lib.maintainers; [ fab ];
59 };
60})