pytomlpp: remove setup_requires to avoid setuptools fetching deps in Nix (#450150)

This commit is contained in:
Sandro
2025-10-11 15:42:27 +00:00
committed by GitHub
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,24 @@
From 8479bb8809a318f49ae5b881b65890db40b0e693 Mon Sep 17 00:00:00 2001
From: loner <2788892716@qq.com>
Date: Thu, 9 Oct 2025 10:18:44 +0800
Subject: [PATCH] Remove deprecated setup_requires from setup.cfg
---
setup.cfg | 2 --
1 file changed, 2 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index 78468c0..7a875bb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,8 +27,6 @@ classifiers =
keywords = toml, parser, serilization, deserialization, serdes
[options]
-setup_requires =
- pybind11~=2.10
zip_safe = false
packages = find:
package_dir = =src
--
2.51.0
@@ -25,6 +25,9 @@ buildPythonPackage rec {
hash = "sha256-P41jEs1ShpiuSenreE4ykesY2wgBaR7TUKuv3tcD5J0=";
};
# The latest setuptools has deprecated `setup_requires` and will attempt to automatically invoke `pip` to install dependencies during the build.
patches = [ ./0001-remove-setup_requires.patch ];
buildInputs = [ pybind11 ];
nativeCheckInputs = [