3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/maigret/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

99 lines
1.9 KiB
Nix
Raw Normal View History

2021-11-27 16:59:11 +00:00
{ lib
2022-10-03 13:23:11 +01:00
, stdenv
2021-11-27 16:59:11 +00:00
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "maigret";
2022-10-03 13:23:11 +01:00
version = "0.4.4";
2021-11-27 16:59:11 +00:00
src = fetchFromGitHub {
owner = "soxoj";
repo = pname;
2022-04-21 06:59:28 +01:00
rev = "refs/tags/v${version}";
2022-10-03 13:23:11 +01:00
hash = "sha256-Z8SnA7Z5+oKW0AOaNf+c/zR30lrPFmXaxxKkbnDXNNs=";
2021-11-27 16:59:11 +00:00
};
2022-10-03 13:23:11 +01:00
nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
2021-11-27 16:59:11 +00:00
propagatedBuildInputs = with python3.pkgs; [
aiodns
aiohttp
aiohttp-socks
arabic-reshaper
async-timeout
attrs
beautifulsoup4
certifi
chardet
2022-10-03 13:23:11 +01:00
cloudscraper
2021-11-27 16:59:11 +00:00
colorama
future
html5lib
idna
jinja2
lxml
markupsafe
mock
multidict
networkx
pycountry
pypdf2
pysocks
python-bidi
pyvis
requests
requests-futures
six
socid-extractor
soupsieve
stem
torrequest
tqdm
typing-extensions
webencodings
xhtml2pdf
xmind
yarl
];
checkInputs = with python3.pkgs; [
pytest-httpserver
pytest-asyncio
pytestCheckHook
];
2022-10-03 13:23:11 +01:00
pythonRelaxDeps = true;
pythonRemoveDeps = [ "future-annotations" ];
2021-11-27 16:59:11 +00:00
2022-08-15 11:10:34 +01:00
pytestFlagsArray = [
# DeprecationWarning: There is no current event loop
"-W ignore::DeprecationWarning"
];
2021-11-27 16:59:11 +00:00
disabledTests = [
# Tests require network access
"test_extract_ids_from_page"
"test_import_aiohttp_cookies"
"test_maigret_results"
"test_pdf_report"
"test_self_check_db_negative_enabled"
"test_self_check_db_positive_enable"
2022-10-03 13:23:11 +01:00
] ++ lib.optionals stdenv.isDarwin [
# AsyncioProgressbarExecutor is slower on darwin than it should be,
# Upstream issue: https://github.com/soxoj/maigret/issues/679
"test_asyncio_progressbar_executor"
2021-11-27 16:59:11 +00:00
];
pythonImportsCheck = [
"maigret"
];
meta = with lib; {
description = "Tool to collect details about an username";
homepage = "https://maigret.readthedocs.io";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}