Commit 8ea6d8cb authored by K900's avatar K900
Browse files

python313Packages.pproxy: fix optional dependencies

This is more correct and the uvloop glue is broken with latest uvloop,
which makes psycopg tests and probably more things to fail randomly.
parent 1efe5c9a
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@
  fetchFromGitHub,
  pycryptodome,
  uvloop,
  asyncssh,
  aioquic,
  python-daemon,
  setuptools,
  pythonOlder,
}:
@@ -24,10 +27,14 @@ buildPythonPackage rec {

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    pycryptodome
    uvloop
  ];
  optional-dependencies = {
    accelerated = [ pycryptodome uvloop ];
    sshtunnel = [ asyncssh ];
    quic = [ aioquic ];
    daemon = [ python-daemon ];
  };

  nativeCheckInputs = lib.flatten (lib.attrValues optional-dependencies);

  pythonImportsCheck = [ "pproxy" ];