buildPythonApplication not finding dependencies

Given:

buildPythonApplication {
  pname = "plaid2text";

  version = "0.1.3-pre20220313";

  src = fetchFromGitHub {
    owner = "madhat2r";
    repo = "plaid2text";
    rev = "49f5746466b6240f7520543bd656975585de1b8b";
    sha256 = "sha256-w35wRtDfqnuWV+rlhBqT+tk8YxYvZ+kqhKMf+1HD6aU=";
  };
  nativeBuildInputs = [ pythonRelaxDepsHook ];
  pythonRelaxDeps = [ "pymongo" ];
  propagatedBuildInputs = [
    pymongo prompt-toolkit plaid-python beancount
  ];
}

I get:

Processing ./plaid2text-0.1.2-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement pymongo==3.10.1 (from plaid2text) (from versions: none)
ERROR: No matching distribution found for pymongo==3.10.1

This is doubly surprising: I expect the 3.10.1 requirement to be relaxed, and I expect versions besides none to be present.

1 Like

Haven’t tried pythonRelaxDeps before, but it looks like you can set an env to enable some debug.