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