python3Packages.pystemmer: fix build with structuredAttrs

This commit is contained in:
Stefan Frijters
2025-12-14 12:56:44 +01:00
parent f405a798c3
commit 8d8fb3ca58
@@ -40,9 +40,10 @@ buildPythonPackage rec {
export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include"
'';
env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev libstemmer}/include" ];
NIX_CFLAGS_LINK = [ "-L${libstemmer}/lib" ];
env = {
NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev libstemmer}/include" ];
NIX_CFLAGS_LINK = toString [ "-L${libstemmer}/lib" ];
};
pythonImportsCheck = [ "Stemmer" ];
@@ -52,6 +53,8 @@ buildPythonPackage rec {
runHook postCheck
'';
__structuredAttrs = true;
meta = {
description = "Snowball stemming algorithms, for information retrieval";
downloadPage = "https://github.com/snowballstem/pystemmer";