1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, libxml2
5, libxslt
6}:
7
8buildPythonPackage rec {
9 pname = "lxml";
10 version = "4.2.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "e2afbe403090f5893e254958d02875e0732975e73c4c0cdd33c1f009a61963ca";
15 };
16
17 buildInputs = [ libxml2 libxslt ];
18
19 hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";
20
21 meta = {
22 description = "Pythonic binding for the libxml2 and libxslt libraries";
23 homepage = https://lxml.de;
24 license = stdenv.lib.licenses.bsd3;
25 maintainers = with stdenv.lib.maintainers; [ sjourdois ];
26 };
27}