File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed
pkgs/by-name/au/ausweiskopie Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ python3Packages ,
6+ makeDesktopItem ,
7+ copyDesktopItems ,
8+ desktopToDarwinBundle ,
9+ enableModern ? true ,
10+ } :
11+
12+ python3Packages . buildPythonApplication rec {
13+ pname = "ausweiskopie" ;
14+ version = "0.1.4" ;
15+ pyproject = true ;
16+
17+ src = fetchFromGitHub {
18+ owner = "Varbin" ;
19+ repo = pname ;
20+ tag = "v${ version } " ;
21+ hash = "sha256-axy/cI5n2uvMKZ2Fkb0seFMRBKv6rpU01kgKSiQ10jE=" ;
22+ } ;
23+
24+ nativeBuildInputs = [
25+ copyDesktopItems
26+ ] ++ lib . optional stdenv . hostPlatform . isDarwin desktopToDarwinBundle ;
27+
28+ build-system = with python3Packages ; [
29+ setuptools
30+ setuptools-scm
31+ ] ;
32+
33+ desktopItems = [
34+ ( makeDesktopItem {
35+ name = "Meine Ausweiskopie" ;
36+ exec = "ausweiskopie" ;
37+ icon = "ausweiskopie" ;
38+ desktopName = "Meine Ausweiskopie" ;
39+ comment = "Create redacted copies of German identity cards" ;
40+ categories = [
41+ "Office"
42+ "Viewer"
43+ ] ;
44+ } )
45+ ] ;
46+
47+ dependencies =
48+ with python3Packages ;
49+ (
50+ [
51+ pillow
52+ tkinter
53+ importlib-resources
54+ ]
55+ ++ lib . optionals enableModern optional-dependencies . modern
56+ ++ lib . optionals stdenv . hostPlatform . isLinux [
57+ dbus-next
58+ pygobject3
59+ ]
60+ ) ;
61+
62+ optional-dependencies . modern = [ python3Packages . ttkbootstrap ] ;
63+
64+ postInstall = ''
65+ install -Dm644 ./src/ausweiskopie/resources/icon_colored.png $out/share/icons/hicolor/256x256/apps/ausweiskopie.png
66+ '' ;
67+
68+ meta = {
69+ description = "Create privacy friendly and legal copies of your Ausweisdokument" ;
70+ homepage = "https://github.com/Varbin/ausweiskopie" ;
71+ license = lib . licenses . mpl20 ;
72+ maintainers = with lib . maintainers ; [ e1mo ] ;
73+ platforms = lib . platforms . unix ;
74+ mainProgram = "ausweiskopie" ;
75+ } ;
76+ }
You can’t perform that action at this time.
0 commit comments