nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pyside2
6, johnnycanencrypt
7, pythonOlder
8, wrapQtAppsHook
9}:
10
11buildPythonPackage rec {
12 pname = "tumpa";
13 version = "0.1.2";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "kushaldas";
18 repo = "tumpa";
19 rev = "v${version}";
20 sha256 = "17nhdildapgic5l05f3q1wf5jvz3qqdjv543c8gij1x9rdm8hgxi";
21 };
22
23 propagatedBuildInputs = [
24 setuptools
25 johnnycanencrypt
26 pyside2
27 ];
28
29 nativeBuildInputs = [
30 wrapQtAppsHook
31 ];
32
33 dontWrapQtApps = true;
34 preFixup = ''
35 makeWrapperArgs+=("''${qtWrapperArgs[@]}")
36 '';
37
38 doCheck = false;
39
40 meta = with lib; {
41 description = "OpenPGP key creation and smartcard access";
42 homepage = "https://github.com/kushaldas/tumpa";
43 license = licenses.gpl3Plus;
44 maintainers = with maintainers; [ _0x4A6F ];
45 };
46}