build: add numpy and native library dependencies

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 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 15:36:41 -04:00
parent 490850d7a6
commit d371ceeec8
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -20,6 +20,14 @@
packages = [ packages = [
python python
pkgs.python311Packages.virtualenv # gives `virtualenv` tool 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 = '' shellHook = ''
+1
View File
@@ -11,4 +11,5 @@ uvicorn[standard]
httpx httpx
streamlit streamlit
plotly plotly
numpy
pandas pandas