File tree Expand file tree Collapse file tree 3 files changed +117
-0
lines changed
development/python-modules/ttkbootstrap Expand file tree Collapse file tree 3 files changed +117
-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+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ buildPythonPackage ,
6+ pillow ,
7+ setuptools ,
8+ } :
9+
10+ buildPythonPackage rec {
11+ pname = "ttkbootstrap" ;
12+ version = "1.10.1" ;
13+
14+ src = fetchFromGitHub {
15+ owner = "israel-dryer" ;
16+ repo = pname ;
17+ tag = "v${ version } " ;
18+ hash = "sha256-aUqr30Tgz3ZLjLbNIt9yi6bqhXj+31heZoOLOZHYUiU=" ;
19+ } ;
20+
21+ build-system = [
22+ setuptools
23+ ] ;
24+
25+ dependencies = [
26+ pillow
27+ ] ;
28+
29+ # As far as I can tell, all tests require a display and are not normal-ish pytests
30+ # but appear to just be python scripts that run demos of components?
31+ doCheck = false ;
32+
33+ meta = {
34+ description = "Supercharged theme extension for tkinter inspired by Bootstrap" ;
35+ homepage = "https://github.com/israel-dryer/ttkbootstrap" ;
36+ maintainers = with lib . maintainers ; [ e1mo ] ;
37+ license = lib . licenses . mit ;
38+ } ;
39+ }
Original file line number Diff line number Diff line change @@ -17476,6 +17476,8 @@ self: super: with self; {
1747617476
1747717477 ttfautohint-py = callPackage ../development/python-modules/ttfautohint-py { };
1747817478
17479+ ttkbootstrap = callPackage ../development/python-modules/ttkbootstrap { };
17480+
1747917481 ttls = callPackage ../development/python-modules/ttls { };
1748017482
1748117483 ttn-client = callPackage ../development/python-modules/ttn-client { };
You can’t perform that action at this time.
0 commit comments