From 98e9d6b707db6f1504b456bcf4b31ea2a24fb023 Mon Sep 17 00:00:00 2001 From: phaer Date: Tue, 24 Feb 2026 14:10:15 +0100 Subject: [PATCH] python3Packages.sqlcipher3: fix build by removing conan build dependency Upstream added conan to pyproject.toml's build-system requires. Conan is used to fetch OpenSSL at build time for CI wheel builds, but is unnecessary in nixpkgs since OpenSSL is provided via buildInputs. The setup.py already handles missing conan gracefully. --- pkgs/development/python-modules/sqlcipher3/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/sqlcipher3/default.nix b/pkgs/development/python-modules/sqlcipher3/default.nix index 397b01d0e767..b4e4bfcd6787 100644 --- a/pkgs/development/python-modules/sqlcipher3/default.nix +++ b/pkgs/development/python-modules/sqlcipher3/default.nix @@ -19,6 +19,14 @@ buildPythonPackage { hash = "sha256-orZ1KJuoiJ84liWiHzoB8f8VmlUbW4j7qP2S2g4COAo="; }; + postPatch = '' + # Remove conan from build dependencies; it is used upstream to fetch + # OpenSSL at build time, but we provide it via buildInputs instead. + # setup.py already handles the missing conan case gracefully. + substituteInPlace pyproject.toml \ + --replace-fail '"conan>=2.0",' "" + ''; + build-system = [ setuptools ];