{ lib, buildPythonPackage, fetchFromGitHub, gnupg, keyring, pass, poetry-core, pythonOlder, }: buildPythonPackage rec { pname = "keyring-pass"; version = "0.9.3"; disabled = pythonOlder "3.6"; pyproject = true; src = fetchFromGitHub { owner = "nazarewk"; repo = "keyring_pass"; rev = "refs/tags/v${version}"; hash = "sha256-EsM+RUhYtelslRpxR5NQbqpOt8KaeCsFqkqZ1ZFx0I0="; }; 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 <