diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/lxml/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/lxml/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/lxml/default.nix b/nixpkgs/pkgs/development/python-modules/lxml/default.nix new file mode 100644 index 000000000000..117a9699e01d --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/lxml/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, libxml2 +, libxslt +}: + +buildPythonPackage rec { + pname = "lxml"; + version = "4.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "da5e7e941d6e71c9c9a717c93725cda0708c2474f532e3680ac5e39ec57d224d"; + }; + + nativeBuildInputs = [ libxml2.dev libxslt.dev ]; + buildInputs = [ libxml2 libxslt ]; + + hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format"; + + meta = { + description = "Pythonic binding for the libxml2 and libxslt libraries"; + homepage = https://lxml.de; + license = stdenv.lib.licenses.bsd3; + maintainers = with stdenv.lib.maintainers; [ sjourdois ]; + }; +} |