Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ stdenv, lib, buildPythonPackage, fetchFromGitHub,
# build-system cython, setuptools,
# native dependencies libxml2, libxslt, zlib, xcodebuild,}:
buildPythonPackage rec { pname = "lxml"; version = "6.0.0"; pyproject = true;
src = fetchFromGitHub { owner = "lxml"; repo = "lxml"; tag = "lxml-${version}"; hash = "sha256-e1Lhtn8cjuDWkBV29icIqe0CJ59Ab05hBGMa+eRBzAw="; };
build-system = [ cython setuptools ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcodebuild ];
# required for build time dependency check nativeBuildInputs = [ libxml2.dev libxslt.dev ];
buildInputs = [ libxml2 libxslt zlib ];
env = lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; };
# tests are meant to be ran "in-place" in the same directory as src doCheck = false;
pythonImportsCheck = [ "lxml" "lxml.etree" ];
meta = with lib; { changelog = "https://github.com/lxml/lxml/blob/lxml-${version}/CHANGES.txt"; description = "Pythonic binding for the libxml2 and libxslt libraries"; homepage = "https://lxml.de"; license = licenses.bsd3; maintainers = [ ]; };}