From cb737057b6d6cfaf03e88e4e34db4b8235df35bb Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Tue, 1 Jul 2025 14:34:00 -0300 Subject: [PATCH] beeref: init at 0.3.3 --- pkgs/by-name/be/beeref/package.nix | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/be/beeref/package.nix diff --git a/pkgs/by-name/be/beeref/package.nix b/pkgs/by-name/be/beeref/package.nix new file mode 100644 index 000000000000..d7595248c5ee --- /dev/null +++ b/pkgs/by-name/be/beeref/package.nix @@ -0,0 +1,58 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: +python3Packages.buildPythonApplication rec { + pname = "beeref"; + version = "0.3.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "rbreu"; + repo = "beeref"; + tag = "v${version}"; + hash = "sha256-GtxiJKj3tlzI1kVXzJg0LNAUcodXSna17ZvAtsAEH4M="; + }; + + build-system = [ python3Packages.setuptools ]; + + dependencies = with python3Packages; [ + exif + lxml + pyqt6 + rectangle-packer + ]; + + pythonRelaxDeps = [ + "lxml" + "pyqt6" + "rectangle-packer" + ]; + + pythonRemoveDeps = [ "pyqt6-qt6" ]; + + pythonImportsCheck = [ "beeref" ]; + + # Tests fail with "Fatal Python error: Aborted" due to PyQt6 GUI initialization issues in sandbox + # Only versionCheckHook and pythonImportsCheck are used for basic validation + nativeCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + changelog = "https://github.com/rbreu/beeref/blob/v${version}/CHANGELOG.rst"; + description = "Reference image viewer"; + homepage = "https://beeref.org"; + license = with lib.licenses; [ + cc0 + gpl3Only + ]; + mainProgram = "beeref"; + maintainers = with lib.maintainers; [ HeitorAugustoLN ]; + platforms = lib.platforms.all; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + }; +}