Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
932 B · 35 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536{ stdenv, lib, buildPythonPackage, fetchFromGitHub, cython, libxml2, libxslt, zlib, xcodebuild}:
buildPythonPackage rec { pname = "lxml"; version = "4.9.2";
src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/lxml-${version}"; hash = "sha256-IHuTlcDbrZHvS6Gtx48IkznVU+9WxZT9XHUZf8M1WOE="; };
# setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ]; buildInputs = [ libxml2 libxslt zlib ];
# tests are meant to be ran "in-place" in the same directory as src doCheck = false;
pythonImportsCheck = [ "lxml" "lxml.etree" ];
meta = with lib; { description = "Pythonic binding for the libxml2 and libxslt libraries"; homepage = "https://lxml.de"; license = licenses.bsd3; maintainers = with maintainers; [ jonringer ]; };}