2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
2021-01-05 19:07:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, pyside2
|
|
|
|
, johnnycanencrypt
|
|
|
|
, pythonOlder
|
2021-12-07 11:38:29 +00:00
|
|
|
, wrapQtAppsHook
|
2021-01-05 19:07:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tumpa";
|
2022-01-14 00:59:05 +00:00
|
|
|
version = "0.1.2";
|
2021-01-05 19:07:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kushaldas";
|
|
|
|
repo = "tumpa";
|
|
|
|
rev = "v${version}";
|
2022-01-14 00:59:05 +00:00
|
|
|
sha256 = "17nhdildapgic5l05f3q1wf5jvz3qqdjv543c8gij1x9rdm8hgxi";
|
2021-01-05 19:07:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
johnnycanencrypt
|
|
|
|
pyside2
|
|
|
|
];
|
|
|
|
|
2021-12-07 11:38:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-05 19:07:41 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 19:07:41 +00:00
|
|
|
description = "OpenPGP key creation and smartcard access";
|
|
|
|
homepage = "https://github.com/kushaldas/tumpa";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
|
|
};
|
|
|
|
}
|