nixpkgs-suyu/pkgs/development/python-modules/tumpa/default.nix
0x4A6F 08586ff592
tumpa: wrapQtAppsHook (#146437)
- fix `qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""`
  with wrapQtAppsHook
2021-12-07 12:38:29 +01:00

46 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pyside2
, johnnycanencrypt
, pythonOlder
, wrapQtAppsHook
}:
buildPythonPackage rec {
pname = "tumpa";
version = "0.1.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kushaldas";
repo = "tumpa";
rev = "v${version}";
sha256 = "1wvs64s0jxn4p8zr643d2hcczw3a175r6ib3481gdhjx38kgxjbq";
};
propagatedBuildInputs = [
setuptools
johnnycanencrypt
pyside2
];
nativeBuildInputs = [
wrapQtAppsHook
];
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
doCheck = false;
meta = with lib; {
description = "OpenPGP key creation and smartcard access";
homepage = "https://github.com/kushaldas/tumpa";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ _0x4A6F ];
};
}