1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, wxPython_4_2
5, python
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 propagatedBuildInputs = [ wxPython_4_2 ];
20
21 checkPhase = ''
22 runHook preCheck
23 for i in examples/*; do
24 ${python.interpreter} $i
25 done
26 runHook postCheck
27 '';
28
29 # Unable to access the X Display, is $DISPLAY set properly?
30 # would have to use nixos module tests, but it is not worth it
31 doCheck = false;
32
33 pythonImportsCheck = [ "humblewx" ];
34
35 meta = {
36 homepage = "https://github.com/thetimelineproj/humblewx";
37 description = "Library that simplifies creating user interfaces with wxPython";
38 license = lib.licenses.gpl3Only;
39 maintainers = with lib.maintainers; [ davidak ];
40 };
41}