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