22 lines
572 B
Nix
22 lines
572 B
Nix
{stdenv, python27Packages, libxml2, libxslt, zlib}: python27Packages.buildPythonPackage rec {
|
|
pname = "lxml";
|
|
version = "3.8.0";
|
|
format = "setuptools";
|
|
|
|
src = python27Packages.fetchPypi {
|
|
inherit pname version;
|
|
extension = "tar.gz";
|
|
hash = "sha256-c29yvhXKrYEWiR62qkoHi1kNIx/cY4GMQMIWJKxx25Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [python27Packages.setuptools];
|
|
nativeBuildInputs = [ libxml2 libxslt ];
|
|
buildInputs = [ zlib ];
|
|
|
|
env = {
|
|
NIX_CFLAGS_COMPILE="-Wno-incompatible-pointer-types";
|
|
};
|
|
|
|
pythonImportsCheck = [ "lxml" "lxml.etree" ];
|
|
}
|