Commit 648be0ec authored by Lila Hummel's avatar Lila Hummel
Browse files

pynentry: init at 0.1.7

parent d38d6979
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };