From f3205d4db6417c0a1be20faeac79b0292eb19e51 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 18 Jun 2024 10:24:03 +0200 Subject: [PATCH 1/2] python312Packages.random-user-agent: init at 1.0.1-unstable-2018-12-26 Module to get list of user agents based on filters https://github.com/Luqman-Ud-Din/random_user_agent --- .../random-user-agent/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/random-user-agent/default.nix diff --git a/pkgs/development/python-modules/random-user-agent/default.nix b/pkgs/development/python-modules/random-user-agent/default.nix new file mode 100644 index 000000000000..086c8dab3937 --- /dev/null +++ b/pkgs/development/python-modules/random-user-agent/default.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "random-user-agent"; + version = "1.0.1-unstable-2018-12-26"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Luqman-Ud-Din"; + repo = "random_user_agent"; + rev = "9547a1d93558c5838f734357c695fee92be905f7"; + hash = "sha256-BkMx7N8O9I4rD8lvpoyXTZbZDsoozIpYUQh+zkLQ7Uc="; + }; + + build-system = [ setuptools ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "random_user_agent" ]; + + meta = with lib; { + description = "Module to get list of user agents based on filters"; + homepage = "https://github.com/Luqman-Ud-Din/random_user_agent"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ca44cacaeef..6b7a481d3a41 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13069,6 +13069,8 @@ self: super: with self; { ramlfications = callPackage ../development/python-modules/ramlfications { }; + random-user-agent = callPackage ../development/python-modules/random-user-agent { }; + random2 = callPackage ../development/python-modules/random2 { }; randomfiletree = callPackage ../development/python-modules/randomfiletree { }; From bf47ebf05f7712a188876819681f960c4158cfe4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 22 Jun 2024 15:58:24 +0200 Subject: [PATCH 2/2] conkeyscan: init at 1.0.0 Tool to scan Confluence for keywords https://github.com/CompassSecurity/conkeyscan --- pkgs/by-name/co/conkeyscan/package.nix | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/co/conkeyscan/package.nix diff --git a/pkgs/by-name/co/conkeyscan/package.nix b/pkgs/by-name/co/conkeyscan/package.nix new file mode 100644 index 000000000000..8b95916046da --- /dev/null +++ b/pkgs/by-name/co/conkeyscan/package.nix @@ -0,0 +1,50 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "conkeyscan"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "CompassSecurity"; + repo = "conkeyscan"; + rev = "refs/tags/${version}"; + hash = "sha256-F5lYpETzv03O9I4vi4qnLgQLvBlv8bLtJQArxliO8JI="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}" + ''; + + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ + atlassian-python-api + beautifulsoup4 + clize + loguru + pysocks + random-user-agent + readchar + requests-ratelimiter + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "conkeyscan" ]; + + meta = with lib; { + description = "Tool to scan Confluence for keywords"; + homepage = "https://github.com/CompassSecurity/conkeyscan"; + changelog = "https://github.com/CompassSecurity/conkeyscan/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + mainProgram = "conkeyscan"; + }; +}