mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
99 lines
1.9 KiB
Nix
99 lines
1.9 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "maigret";
|
|
version = "0.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "soxoj";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Z8SnA7Z5+oKW0AOaNf+c/zR30lrPFmXaxxKkbnDXNNs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
aiodns
|
|
aiohttp
|
|
aiohttp-socks
|
|
arabic-reshaper
|
|
async-timeout
|
|
attrs
|
|
beautifulsoup4
|
|
certifi
|
|
chardet
|
|
cloudscraper
|
|
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
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytest-httpserver
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonRelaxDeps = true;
|
|
pythonRemoveDeps = [ "future-annotations" ];
|
|
|
|
pytestFlagsArray = [
|
|
# DeprecationWarning: There is no current event loop
|
|
"-W ignore::DeprecationWarning"
|
|
];
|
|
|
|
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"
|
|
] ++ 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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|