@@ -0,0 +1,43 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pygobject3
5+, pytestCheckHook
6+, gtk3
7+, gobject-introspection
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "gbulb";
12+ version = "0.6.3";
13+
14+ src = fetchFromGitHub {
15+ owner = "beeware";
16+ repo = "gbulb";
17+ rev = "v${version}";
18+ sha256 = "sha256-QNpZf1zfe6r6MtmYMWSrXPsXm5iX36oMx4GnXiTYPaQ=";
19+ };
20+
21+ propagatedBuildInputs = [
22+ pygobject3
23+ ];
24+
25+ checkInputs = [
26+ pytestCheckHook
27+ gtk3
28+ gobject-introspection
29+ ];
30+
31+ disabledTests = [
32+ "test_glib_events.TestBaseGLibEventLoop" # Somtimes fail due to imprecise timing
33+ ];
34+
35+ pythonImportsCheck = [ "gbulb" ];
36+
37+ meta = with lib; {
38+ description = "GLib implementation of PEP 3156";
39+ homepage = "https://github.com/beeware/gbulb";
40+ license = licenses.asl20;
41+ maintainers = with maintainers; [ marius851000 ];
42+ };
43+}