Commit 1c1564de authored by Fabian Affolter's avatar Fabian Affolter Committed by github-actions[bot]
Browse files

maigret: refactor

(cherry picked from commit 676d2f07)
parent 3e1e848b
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -9,11 +9,11 @@
python3.pkgs.buildPythonApplication rec {
  pname = "maigret";
  version = "0.4.4";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "soxoj";
    repo = pname;
    repo = "maigret";
    tag = "v${version}";
    hash = "sha256-Z8SnA7Z5+oKW0AOaNf+c/zR30lrPFmXaxxKkbnDXNNs=";
  };
@@ -27,7 +27,9 @@ python3.pkgs.buildPythonApplication rec {
    })
  ];

  propagatedBuildInputs = with python3.pkgs; [
  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [
    aiodns
    aiohttp
    aiohttp-socks
@@ -68,8 +70,6 @@ python3.pkgs.buildPythonApplication rec {
    yarl
  ];

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = with python3.pkgs; [
    pytest-httpserver
    pytest-asyncio
@@ -77,6 +77,7 @@ python3.pkgs.buildPythonApplication rec {
  ];

  pythonRelaxDeps = true;

  pythonRemoveDeps = [ "future-annotations" ];

  pytestFlagsArray = [
@@ -100,14 +101,12 @@ python3.pkgs.buildPythonApplication rec {
      "test_asyncio_progressbar_executor"
    ];

  pythonImportsCheck = [
    "maigret"
  ];
  pythonImportsCheck = [ "maigret" ];

  meta = with lib; {
    description = "Tool to collect details about an username";
    homepage = "https://maigret.readthedocs.io";
    license = with licenses; [ mit ];
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}