evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / humblewx / default.nix
blob2a60e7e97212c42c422887deefb16f66386e9d4b
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   wxpython,
6   python,
7 }:
9 buildPythonPackage rec {
10   pname = "humblewx";
11   version = "0.2.2";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "thetimelineproj";
16     repo = pname;
17     rev = version;
18     sha256 = "0fv8gwlbcj000qq34inbwgxf0xgibs590dsyqnw0mmyb7f1iq210";
19   };
21   propagatedBuildInputs = [ wxpython ];
23   checkPhase = ''
24     runHook preCheck
25     for i in examples/*; do
26       ${python.interpreter} $i
27     done
28     runHook postCheck
29   '';
31   # Unable to access the X Display, is $DISPLAY set properly?
32   # would have to use nixos module tests, but it is not worth it
33   doCheck = false;
35   pythonImportsCheck = [ "humblewx" ];
37   meta = {
38     homepage = "https://github.com/thetimelineproj/humblewx";
39     description = "Library that simplifies creating user interfaces with wxPython";
40     license = lib.licenses.gpl3Only;
41     maintainers = with lib.maintainers; [ davidak ];
42   };