commit
1d1f846ef1
7 changed files with 345 additions and 0 deletions
39
pkgs/by-name/la/lacus/package.nix
Normal file
39
pkgs/by-name/la/lacus/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "lacus";
|
||||
version = "1.8.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ail-project";
|
||||
repo = "lacus";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3sgTt3SsasltChCqHAWyujtUvoLwHWZzfWwlfnJA+zE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
flask-restx
|
||||
gunicorn
|
||||
lacuscore
|
||||
psutil
|
||||
redis
|
||||
rich
|
||||
werkzeug
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Capturing system using playwright";
|
||||
homepage = "https://github.com/ail-project/lacus";
|
||||
changelog = "https://github.com/ail-project/lacus/releases/tag/v${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
41
pkgs/development/python-modules/defang/default.nix
Normal file
41
pkgs/development/python-modules/defang/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromBitbucket
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "defang";
|
||||
version = "0.5.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromBitbucket {
|
||||
owner = "johannestaas";
|
||||
repo = "defang";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-OJfayJeVf2H1/jg7/fu2NiHhRHNCaLGI29SY8BnJyxI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"defang"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to defang and refang malicious URLs";
|
||||
homepage = "https://bitbucket.org/johannestaas/defang";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
65
pkgs/development/python-modules/lacuscore/default.nix
Normal file
65
pkgs/development/python-modules/lacuscore/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, defang
|
||||
, dnspython
|
||||
, fetchFromGitHub
|
||||
, playwrightcapture
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, redis
|
||||
, requests
|
||||
, pythonRelaxDepsHook
|
||||
, sphinx
|
||||
, ua-parser
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lacuscore";
|
||||
version = "1.8.10";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ail-project";
|
||||
repo = "LacusCore";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-X3Bs/eMkpobRqiGB70ujvaIO1xWftEBZFyR9i5eN7/A=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"redis"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
defang
|
||||
dnspython
|
||||
playwrightcapture
|
||||
redis
|
||||
requests
|
||||
sphinx
|
||||
ua-parser
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"lacuscore"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The modulable part of Lacus";
|
||||
homepage = "https://github.com/ail-project/LacusCore";
|
||||
changelog = "https://github.com/ail-project/LacusCore/releases/tag/v${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, playwright
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "playwright-stealth";
|
||||
version = "1.0.6-unstable-2023-09-11";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AtuboDad";
|
||||
repo = "playwright_stealth";
|
||||
# https://github.com/AtuboDad/playwright_stealth/issues/25
|
||||
rev = "43f7433057906945b1648179304d7dbd8eb10874";
|
||||
hash = "sha256-ZWmuVwjEgrPmfxjvws3TdocW6tyNH++fyRfKQ0oJ6bo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
playwright
|
||||
];
|
||||
|
||||
# Tests require Chromium binary
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"playwright_stealth"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Playwright stealth";
|
||||
homepage = "https://github.com/AtuboDad/playwright_stealth";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
{ lib
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, dateparser
|
||||
, fetchFromGitHub
|
||||
, playwright
|
||||
, playwright-stealth
|
||||
, poetry-core
|
||||
, puremagic
|
||||
, pydub
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, pytz
|
||||
, requests
|
||||
, setuptools
|
||||
, speechrecognition
|
||||
, tzdata
|
||||
, w3lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "playwrightcapture";
|
||||
version = "1.23.13";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Lookyloo";
|
||||
repo = "PlaywrightCapture";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-jNTVdGrUQaYHgTxz6zYTdxNQoXEfy/zshherC/gGmng=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"beautifulsoup4"
|
||||
"playwright"
|
||||
"setuptools"
|
||||
"tzdata"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
dateparser
|
||||
playwright
|
||||
playwright-stealth
|
||||
puremagic
|
||||
pytz
|
||||
requests
|
||||
setuptools
|
||||
tzdata
|
||||
w3lib
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
recaptcha = [
|
||||
speechrecognition
|
||||
pydub
|
||||
requests
|
||||
];
|
||||
};
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"playwrightcapture"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Capture a URL with Playwright";
|
||||
homepage = "https://github.com/Lookyloo/PlaywrightCapture";
|
||||
changelog = "https://github.com/Lookyloo/PlaywrightCapture/releases/tag/v${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, torch
|
||||
, requests
|
||||
, setuptools
|
||||
, soundfile
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "speechrecognition";
|
||||
version = "3.10.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Uberi";
|
||||
repo = "speech_recognition";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-lO1CW4j5aBnPtemNGsW8cytSa/H+Tb4Jpbfh4Z/0WHk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pytestCheckHook
|
||||
torch
|
||||
soundfile
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"speech_recognition"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Test files are missing in source
|
||||
"test_flac"
|
||||
# Attribute error
|
||||
"test_whisper"
|
||||
# PocketSphinx is not available in Nixpkgs
|
||||
"test_sphinx"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Speech recognition module for Python, supporting several engines and APIs, online and offline";
|
||||
homepage = "https://github.com/Uberi/speech_recognition";
|
||||
license = with licenses; [ gpl2Only bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -2836,6 +2836,8 @@ self: super: with self; {
|
|||
|
||||
deezer-python = callPackage ../development/python-modules/deezer-python { };
|
||||
|
||||
defang = callPackage ../development/python-modules/defang { };
|
||||
|
||||
defcon = callPackage ../development/python-modules/defcon { };
|
||||
|
||||
deform = callPackage ../development/python-modules/deform { };
|
||||
|
@ -6346,6 +6348,8 @@ self: super: with self; {
|
|||
|
||||
laces = callPackage ../development/python-modules/laces { };
|
||||
|
||||
lacuscore = callPackage ../development/python-modules/lacuscore { };
|
||||
|
||||
lakeside = callPackage ../development/python-modules/lakeside { };
|
||||
|
||||
langchain = callPackage ../development/python-modules/langchain { };
|
||||
|
@ -9658,6 +9662,10 @@ self: super: with self; {
|
|||
|
||||
playwright = callPackage ../development/python-modules/playwright { };
|
||||
|
||||
playwright-stealth = callPackage ../development/python-modules/playwright-stealth { };
|
||||
|
||||
playwrightcapture = callPackage ../development/python-modules/playwrightcapture { };
|
||||
|
||||
pmsensor = callPackage ../development/python-modules/pmsensor { };
|
||||
|
||||
ppdeep = callPackage ../development/python-modules/ppdeep { };
|
||||
|
@ -13919,6 +13927,8 @@ self: super: with self; {
|
|||
|
||||
speechbrain = callPackage ../development/python-modules/speechbrain { };
|
||||
|
||||
speechrecognition = callPackage ../development/python-modules/speechrecognition { };
|
||||
|
||||
speedtest-cli = callPackage ../development/python-modules/speedtest-cli { };
|
||||
|
||||
speg = callPackage ../development/python-modules/speg { };
|
||||
|
|
Loading…
Reference in a new issue