{ lib , buildPythonPackage , fetchFromGitHub , gnupg , keyring , pass , poetry-core , pythonOlder }: buildPythonPackage rec { pname = "keyring-pass"; version = "0.9.2"; disabled = pythonOlder "3.6"; pyproject = true; src = fetchFromGitHub { owner = "nazarewk"; repo = "keyring_pass"; rev = "refs/tags/v${version}"; hash = "sha256-Sf7eDOB3prH2s6BzdBtxewSweC0ibLXVxNHBJRRaJe4="; }; postPatch = '' substituteInPlace keyring_pass/__init__.py \ --replace 'pass_binary = "pass"' 'pass_binary = "${lib.getExe pass}"' ''; nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ keyring gnupg ]; checkPhase = '' export HOME="$TMPDIR" # generate temporary GPG identity cat <