18 buildPythonPackage rec {
23 src = fetchFromGitHub {
26 rev = "refs/tags/lxml-${version}";
27 hash = "sha256-xhKtqsh5FfgXt1fKUhN/Aib/004P7epArv3/XxDSBtw=";
30 # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
36 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcodebuild ];
43 env = lib.optionalAttrs stdenv.cc.isClang {
44 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
47 # tests are meant to be ran "in-place" in the same directory as src
50 pythonImportsCheck = [
56 changelog = "https://github.com/lxml/lxml/blob/lxml-${version}/CHANGES.txt";
57 description = "Pythonic binding for the libxml2 and libxslt libraries";
58 homepage = "https://lxml.de";
59 license = licenses.bsd3;