1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/lxml/default.nix

35 lines
878 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchFromGitHub
, cython
2017-12-30 14:10:02 +00:00
, libxml2
, libxslt
, zlib
2017-12-30 14:10:02 +00:00
}:
buildPythonPackage rec {
pname = "lxml";
2020-02-10 21:53:19 +00:00
version = "4.5.0";
2017-12-30 14:10:02 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "${pname}-${version}";
2020-02-10 21:53:19 +00:00
sha256 = "1i3bhg8xb502afq4ar3kgvvi1hy83l4af2gznfwqvb5b221fr7ak";
2017-12-30 14:10:02 +00:00
};
# setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
nativeBuildInputs = [ libxml2.dev libxslt.dev cython ];
buildInputs = [ libxml2 libxslt zlib ];
2017-12-30 14:10:02 +00:00
# tests are meant to be ran "in-place" in the same directory as src
doCheck = false;
2017-12-30 14:10:02 +00:00
pythonImportsCheck = [ "lxml" "lxml.etree" ];
meta = with stdenv.lib; {
2017-12-30 14:10:02 +00:00
description = "Pythonic binding for the libxml2 and libxslt libraries";
2018-06-30 01:18:27 +01:00
homepage = https://lxml.de;
license = licenses.bsd3;
maintainers = with maintainers; [ jonringer sjourdois ];
2017-12-30 14:10:02 +00:00
};
2018-06-30 01:18:27 +01:00
}