Commit cef790b5 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.mayim: modernize

parent 7b60a1f4
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@

  # test
  pytest-asyncio,
  pytest-cov-stub,

  pytestCheckHook,
}:
@@ -27,16 +28,11 @@ buildPythonPackage rec {
    hash = "sha256-nb0E9kMEJUihaCp8RnqGh0nSyDQo50eL1C4K5lBPlPQ=";
  };

  nativeBuildInputs = [
  build-system = [
    setuptools
    wheel
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "--cov=src --cov-append --cov-report term-missing" ""
  '';

  passthru.optional-dependencies = {
    postgres = [ psycopg ] ++ psycopg.optional-dependencies.pool;
    mysql = [ asyncmy ];
@@ -47,6 +43,7 @@ buildPythonPackage rec {
    [
      pytestCheckHook
      pytest-asyncio
      pytest-cov-stub
    ]
    ++ (with passthru.optional-dependencies; [
      postgres