diff --git a/pkgs/by-name/ma/maigret/package.nix b/pkgs/by-name/ma/maigret/package.nix index dcf74a6ef585..a4b92a64124f 100644 --- a/pkgs/by-name/ma/maigret/package.nix +++ b/pkgs/by-name/ma/maigret/package.nix @@ -2,84 +2,83 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, - python312, + python3, }: -python312.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "maigret"; - version = "0.4.4"; + version = "0.5.0"; pyproject = true; src = fetchFromGitHub { owner = "soxoj"; repo = "maigret"; tag = "v${version}"; - hash = "sha256-Z8SnA7Z5+oKW0AOaNf+c/zR30lrPFmXaxxKkbnDXNNs="; + hash = "sha256-y5b7t4ji72o1PXoqEQ0vNHqE1vwdkB/3gtsCj5GZ4Xg="; }; - patches = [ - # https://github.com/soxoj/maigret/pull/1117 - (fetchpatch { - name = "pytest-7.3-compatibility.patch"; - url = "https://github.com/soxoj/maigret/commit/ecb33de9e6eec12b6b45a1152199177f32c85be2.patch"; - hash = "sha256-nFx3j1Q37YLtYhb0QS34UgZFgAc5Z/RVgbO9o1n1ONE="; - }) + pythonRelaxDeps = true; + + pythonRemoveDeps = [ + "future-annotations" + "future" + "six" ]; - build-system = with python312.pkgs; [ setuptools ]; + build-system = with python3.pkgs; [ poetry-core ]; - dependencies = with python312.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 - ]; + dependencies = + with python3.pkgs; + [ + aiodns + aiohttp + aiohttp-socks + alive-progress + arabic-reshaper + asgiref + async-timeout + attrs + beautifulsoup4 + certifi + chardet + cloudscraper + colorama + flask + html5lib + idna + jinja2 + lxml + markupsafe + mock + multidict + networkx + platformdirs + pycountry + pypdf2 + pysocks + python-bidi + pyvis + requests + requests-futures + socid-extractor + soupsieve + stem + torrequest + tqdm + typing-extensions + webencodings + xhtml2pdf + xmind + yarl + ] + ++ flask.optional-dependencies.async; - nativeCheckInputs = with python312.pkgs; [ + nativeCheckInputs = with python3.pkgs; [ pytest-httpserver pytest-asyncio pytestCheckHook ]; - pythonRelaxDeps = true; - - pythonRemoveDeps = [ "future-annotations" ]; - pytestFlags = [ # DeprecationWarning: There is no current event loop "-Wignore::DeprecationWarning" @@ -93,6 +92,13 @@ python312.pkgs.buildPythonApplication rec { "test_pdf_report" "test_self_check_db_negative_enabled" "test_self_check_db_positive_enable" + "test_detect_known_engine" + "test_check_features_manually_success" + "test_dialog_adds_site_positive" + "test_dialog_replace_site" + "test_dialog_adds_site_negative" + # + "test_self_check_db" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # AsyncioProgressbarExecutor is slower on darwin than it should be, @@ -105,6 +111,7 @@ python312.pkgs.buildPythonApplication rec { meta = { description = "Tool to collect details about an username"; homepage = "https://maigret.readthedocs.io"; + changelog = "https://github.com/soxoj/maigret/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab