From 1bc559ed431a9556fea8dc370e2eccc736c20133 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 14 Sep 2024 10:31:43 +0900 Subject: [PATCH] tryton: build with pypaBuildHook --- pkgs/applications/office/tryton/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/office/tryton/default.nix b/pkgs/applications/office/tryton/default.nix index 88d195af8d40..be1050c1973e 100644 --- a/pkgs/applications/office/tryton/default.nix +++ b/pkgs/applications/office/tryton/default.nix @@ -20,21 +20,22 @@ python3Packages.buildPythonApplication rec { pname = "tryton"; version = "7.2.5"; - - disabled = !python3Packages.isPy3k; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-U6hA6TuIMDTFAZUic60A5IKr/LKxKZEgiTIhkLlTJSw="; }; + build-system = [ python3Packages.setuptools ]; + nativeBuildInputs = [ pkg-config gobject-introspection wrapGAppsHook3 ]; - propagatedBuildInputs = with python3Packages; [ + dependencies = with python3Packages; [ python-dateutil pygobject3 goocalendar @@ -57,6 +58,8 @@ python3Packages.buildPythonApplication rec { strictDeps = false; + pythonImportsCheck = [ "tryton" ]; + doCheck = false; meta = with lib; {