pynentry: init at 0.1.7

This commit is contained in:
Lila Hummel
2026-02-22 23:00:32 +01:00
parent d38d697928
commit 648be0ecef
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,36 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pinentry-curses,
setuptools,
}:
buildPythonPackage {
pname = "pynentry";
version = "0.1.7";
pyproject = true;
src = fetchFromGitHub {
owner = "Laharah";
repo = "pynentry";
rev = "54a484b36b8ac16c0ae51fe436844d5a056ec3c9";
hash = "sha256-bbuAI0IB3cTIfaCCrq0g93geRLUsxaahHWuU3bBtHII";
};
build-system = [ setuptools ];
postPatch = ''
substituteInPlace pynentry.py \
--replace-fail 'executable="pinentry"' 'executable="${lib.getExe pinentry-curses}"'
'';
pythonImportsCheck = [ "pynentry" ];
meta = {
description = "Wrapper for pinentry for python";
homepage = "https://github.com/Laharah/pynentry";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ lilahummel ];
};
}
+2
View File
@@ -14125,6 +14125,8 @@ self: super: with self; {
pynello = callPackage ../development/python-modules/pynello { };
pynentry = callPackage ../development/python-modules/pynentry { };
pynest2d = callPackage ../development/python-modules/pynest2d { };
pynetbox = callPackage ../development/python-modules/pynetbox { };