From d371ceeec820529cdbf8f7fc8708602f887e4826 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Fri, 13 Mar 2026 15:36:41 -0400 Subject: [PATCH] build: add numpy and native library dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add numpy to requirements.txt and configure flake.nix with zlib and stdenv.cc.cc.lib to support C extension packages. Sets LD_LIBRARY_PATH for proper runtime linking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- flake.nix | 8 ++++++++ requirements.txt | 1 + 2 files changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 90d8ab6..5c04274 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,14 @@ packages = [ python pkgs.python311Packages.virtualenv # gives `virtualenv` tool + pkgs.zlib + pkgs.stdenv.cc.cc.lib + ]; + + # Required for numpy and other C extension packages + LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ + pkgs.zlib + pkgs.stdenv.cc.cc.lib ]; shellHook = '' diff --git a/requirements.txt b/requirements.txt index edab150..a28fbb7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,4 +11,5 @@ uvicorn[standard] httpx streamlit plotly +numpy pandas