1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, wxPython_4_0
5, python3
6}:
7
8buildPythonPackage rec {
9 pname = "humblewx";
10 version = "0.2.2";
11
12 src = fetchFromGitHub {
13 owner = "thetimelineproj";
14 repo = pname;
15 rev = version;
16 sha256 = "0fv8gwlbcj000qq34inbwgxf0xgibs590dsyqnw0mmyb7f1iq210";
17 };
18
19 # timeline is not compatible with wxPython_4_1. reported upstream
20 propagatedBuildInputs = [ wxPython_4_0 ];
21
22 checkPhase = ''
23 runHook preCheck
24 for i in examples/*; do
25 ${python3.interpreter} $i
26 done
27 runHook postCheck
28 '';
29
30 # Unable to access the X Display, is $DISPLAY set properly?
31 # would have to use nixos module tests, but it is not worth it
32 doCheck = false;
33
34 pythonImportsCheck = [ "humblewx" ];
35
36 meta = {
37 homepage = "https://github.com/thetimelineproj/humblewx";
38 description = "Library that simplifies creating user interfaces with wxPython";
39 license = lib.licenses.gpl3Only;
40 maintainers = with lib.maintainers; [ davidak ];
41 };
42}