nixpkgs/pkgs/development/python-modules/lxml/default.nix
ajs124 3f5b809a5f maintainers: remove sjourdois
no github account linked
2022-06-29 00:54:59 +02:00

36 lines
924 B
Nix

{ stdenv, lib, buildPythonPackage, fetchFromGitHub
, cython
, libxml2
, libxslt
, zlib
, xcodebuild
}:
buildPythonPackage rec {
pname = "lxml";
version = "4.9.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "lxml-${version}";
sha256 = "sha256-3bPyfsiJGDNB0MPw4OhATRnsM3I8ThZwvPWI+easgNo=";
};
# 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 ];
};
}