2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools-scm,
|
2024-06-05 15:53:02 +00:00
|
|
|
pygobject3,
|
|
|
|
pytestCheckHook,
|
|
|
|
gtk3,
|
|
|
|
gobject-introspection,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gbulb";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.5";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beeware";
|
|
|
|
repo = "gbulb";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-03Ott+V3Y4+Y72Llsug5coqG3C+pjAdLkPYbaY/6Uow=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "==" ">="
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
|
|
|
|
dependencies = [ pygobject3 ];
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_glib_events.TestBaseGLibEventLoop" # Somtimes fail due to imprecise timing
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gbulb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "GLib implementation of PEP 3156";
|
|
|
|
homepage = "https://github.com/beeware/gbulb";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ marius851000 ];
|
|
|
|
};
|
|
|
|
}
|