Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / humblewx / default.nix
blob71b76fe8c73e37b69457f00c9c3e1e5565866d88
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , wxpython
5 , python
6 }:
8 buildPythonPackage rec {
9   pname = "humblewx";
10   version = "0.2.2";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "thetimelineproj";
15     repo = pname;
16     rev = version;
17     sha256 = "0fv8gwlbcj000qq34inbwgxf0xgibs590dsyqnw0mmyb7f1iq210";
18   };
20   propagatedBuildInputs = [ wxpython ];
22   checkPhase = ''
23     runHook preCheck
24     for i in examples/*; do
25       ${python.interpreter} $i
26     done
27     runHook postCheck
28   '';
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;
34   pythonImportsCheck = [ "humblewx" ];
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   };