summary refs log tree commit diff
path: root/doc/languages-frameworks/python.section.md
diff options
context:
space:
mode:
authoramesgen <amesgen@amesgen.de>2023-06-29 21:38:37 +0200
committeramesgen <amesgen@amesgen.de>2023-06-29 21:38:37 +0200
commit906102c9115bc350ee95e1d5bc3c4c171c1a3af1 (patch)
tree0f5e655867103fe41350b72d7b3c292ad5ae8eec /doc/languages-frameworks/python.section.md
parent2efbe2e3d9bcfdba7882768c812343c8c99bab08 (diff)
downloadnixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar.gz
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar.bz2
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar.lz
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar.xz
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.tar.zst
nixpkgs-906102c9115bc350ee95e1d5bc3c4c171c1a3af1.zip
doc/languages-frameworks/python: don't use full `pkgs` in attrs
Diffstat (limited to 'doc/languages-frameworks/python.section.md')
-rw-r--r--doc/languages-frameworks/python.section.md21
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index d9a13aef6e6..23c8526787b 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -512,9 +512,10 @@ when building the bindings and are therefore added as `buildInputs`.
 
 ```nix
 { lib
-, pkgs
 , buildPythonPackage
 , fetchPypi
+, libxml2
+, libxslt
 }:
 
 buildPythonPackage rec {
@@ -528,8 +529,8 @@ buildPythonPackage rec {
   };
 
   buildInputs = [
-    pkgs.libxml2
-    pkgs.libxslt
+    libxml2
+    libxslt
   ];
 
   meta = with lib; {
@@ -554,11 +555,13 @@ therefore we have to set `LDFLAGS` and `CFLAGS`.
 
 ```nix
 { lib
-, pkgs
 , buildPythonPackage
 , fetchPypi
 
 # dependencies
+, fftw
+, fftwFloat
+, fftwLongDouble
 , numpy
 , scipy
 }:
@@ -574,9 +577,9 @@ buildPythonPackage rec {
   };
 
   buildInputs = [
-    pkgs.fftw
-    pkgs.fftwFloat
-    pkgs.fftwLongDouble
+    fftw
+    fftwFloat
+    fftwLongDouble
   ];
 
   propagatedBuildInputs = [
@@ -585,8 +588,8 @@ buildPythonPackage rec {
   ];
 
   preConfigure = ''
-    export LDFLAGS="-L${pkgs.fftw.dev}/lib -L${pkgs.fftwFloat.out}/lib -L${pkgs.fftwLongDouble.out}/lib"
-    export CFLAGS="-I${pkgs.fftw.dev}/include -I${pkgs.fftwFloat.dev}/include -I${pkgs.fftwLongDouble.dev}/include"
+    export LDFLAGS="-L${fftw.dev}/lib -L${fftwFloat.out}/lib -L${fftwLongDouble.out}/lib"
+    export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include"
   '';
 
   # Tests cannot import pyfftw. pyfftw works fine though.