From fe8586e7809910d78bef399bd658bf3a791638f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Wed, 26 Nov 2025 18:49:19 +0100 Subject: [PATCH] Set pyproject=true in buildPythonApplication The buildPythonPackage and buildPythonApplication functions now require an explicit format attribute. Previously the default format used setuptools and called setup.py from the source tree, which is deprecated. The modern alternative is to configure pyproject = true with build-system = [ setuptools ]. Reviewed-by: Rodrigo Arias Mallo --- pkgs/meteocat-exporter/default.nix | 4 +++- pkgs/upc-qaire-exporter/default.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/meteocat-exporter/default.nix b/pkgs/meteocat-exporter/default.nix index 5bc4f096..470d658b 100644 --- a/pkgs/meteocat-exporter/default.nix +++ b/pkgs/meteocat-exporter/default.nix @@ -1,9 +1,11 @@ { python3Packages, lib }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication { pname = "meteocat-exporter"; version = "1.0"; + pyproject = true; + src = ./.; doCheck = false; diff --git a/pkgs/upc-qaire-exporter/default.nix b/pkgs/upc-qaire-exporter/default.nix index b5c14cb2..ea3dc89b 100644 --- a/pkgs/upc-qaire-exporter/default.nix +++ b/pkgs/upc-qaire-exporter/default.nix @@ -1,9 +1,11 @@ { python3Packages, lib }: -python3Packages.buildPythonApplication rec { +python3Packages.buildPythonApplication { pname = "upc-qaire-exporter"; version = "1.0"; + pyproject = true; + src = ./.; doCheck = false;