diff --git a/pkgs/development/python-modules/pyscard/default.nix b/pkgs/development/python-modules/pyscard/default.nix index 4784e46ffb21..a15342e17fa3 100644 --- a/pkgs/development/python-modules/pyscard/default.nix +++ b/pkgs/development/python-modules/pyscard/default.nix @@ -17,7 +17,8 @@ buildPythonPackage rec { NIX_CFLAGS_COMPILE = "-isystem ${stdenv.lib.getDev pcsclite}/include/PCSC/"; propagatedBuildInputs = [ pcsclite ]; - buildInputs = [ swig ] ++ stdenv.lib.optional stdenv.isDarwin PCSC; + buildInputs = stdenv.lib.optional stdenv.isDarwin PCSC; + nativeBuildInputs = [ swig ]; meta = { homepage = https://pyscard.sourceforge.io/;