Loading pkgs/by-name/ma/maigret/package.nix +65 −58 Original line number Diff line number Diff line Loading @@ -2,38 +2,40 @@ 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; [ dependencies = with python3.pkgs; [ aiodns aiohttp aiohttp-socks alive-progress arabic-reshaper asgiref async-timeout attrs beautifulsoup4 Loading @@ -41,7 +43,7 @@ python312.pkgs.buildPythonApplication rec { chardet cloudscraper colorama future flask html5lib idna jinja2 Loading @@ -50,6 +52,7 @@ python312.pkgs.buildPythonApplication rec { mock multidict networkx platformdirs pycountry pypdf2 pysocks Loading @@ -57,7 +60,6 @@ python312.pkgs.buildPythonApplication rec { pyvis requests requests-futures six socid-extractor soupsieve stem Loading @@ -68,18 +70,15 @@ python312.pkgs.buildPythonApplication rec { 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" Loading @@ -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, Loading @@ -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 Loading Loading
pkgs/by-name/ma/maigret/package.nix +65 −58 Original line number Diff line number Diff line Loading @@ -2,38 +2,40 @@ 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; [ dependencies = with python3.pkgs; [ aiodns aiohttp aiohttp-socks alive-progress arabic-reshaper asgiref async-timeout attrs beautifulsoup4 Loading @@ -41,7 +43,7 @@ python312.pkgs.buildPythonApplication rec { chardet cloudscraper colorama future flask html5lib idna jinja2 Loading @@ -50,6 +52,7 @@ python312.pkgs.buildPythonApplication rec { mock multidict networkx platformdirs pycountry pypdf2 pysocks Loading @@ -57,7 +60,6 @@ python312.pkgs.buildPythonApplication rec { pyvis requests requests-futures six socid-extractor soupsieve stem Loading @@ -68,18 +70,15 @@ python312.pkgs.buildPythonApplication rec { 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" Loading @@ -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, Loading @@ -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 Loading