2022-05-29 09:10:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-03-05 21:21:26 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pygobject3
|
|
|
|
, pytestCheckHook
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gbulb";
|
2023-02-09 11:19:11 +00:00
|
|
|
version = "0.6.4";
|
2022-03-05 21:21:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beeware";
|
|
|
|
repo = "gbulb";
|
2023-02-09 11:19:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-AdZSvxix0cpoFQSrslGl+hB/s6Nh0EsWMQmXZAJVJOg=";
|
2022-03-05 21:21:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygobject3
|
2022-08-27 09:39:34 +00:00
|
|
|
gtk3
|
2022-03-05 21:21:26 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-05 21:21:26 +00:00
|
|
|
pytestCheckHook
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_glib_events.TestBaseGLibEventLoop" # Somtimes fail due to imprecise timing
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gbulb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 09:10:09 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-03-05 21:21:26 +00:00
|
|
|
description = "GLib implementation of PEP 3156";
|
|
|
|
homepage = "https://github.com/beeware/gbulb";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ marius851000 ];
|
|
|
|
};
|
|
|
|
}
|